Switch to full style
Post all Gimp scripts and script writing questions here
Post a reply

Question about G'MIC and custom Gimp keyboard shortcuts

Sat Oct 31, 2020 11:44 am

Hello I have preset filters I use in G'MIC alot. I run Gimp 2.10.20 on Linux. Gimp has options to add custom keyboard shortcuts for almost all it's options. I would like to know if it were possible to add G'MIC commands to user defined keyboard shortcuts that could be used in Gimp 2.10x? When I select repeat and reshow in Gimp I can reaccess the same G'MIC command, but this is only a one time option.



If anyone can figure out how to set a G'MIC command to a keyboard shortcut in Gimp it would be greatly appreciated.

Re: Question about G'MIC and custom Gimp keyboard shortcuts

Sat Oct 31, 2020 3:40 pm

Personally I do not think using a shortcut key per command is very practical, however (always a however) a g'mic command included in a script or plugin can use a shortcut. Get the g'mic command from the log file in ~/.config/gmic

Plugin attached with sample command. Unzip, put in your user profile plug-ins folder

Example: using a shortcut key: https://i.imgur.com/yzoTXa9.mp4

Obviously, the snag is, one plugin required for each hotkey.

edit: Should have picked up on "Ubuntu 20.04 (focal) and Gimp 2.10.20
The default for focal is Gimp 2.10.18 the lastest that you might get with a flatpak is 2.10.22. Are you using the 'buntu SNAP version ? Does it support python2 ?

Re: Question about G'MIC and custom Gimp keyboard shortcuts

Sun Nov 01, 2020 12:38 pm

@rich2005 I got your gmic to gimp command working. Now I can stroke brush and outline text automatically. Thank you!

Re: Question about G'MIC and custom Gimp keyboard shortcuts

Sun Nov 01, 2020 12:45 pm

contrast_ wrote:@rich2005 I got your gmic to gimp command working. Now I can stroke brush and outline text automatically. Thank you!

Why not just use Layer-FX for that?

Re: Question about G'MIC and custom Gimp keyboard shortcuts

Tue Nov 23, 2021 7:17 pm

rich2005 wrote:Plugin attached with sample command. Unzip, put in your user profile plug-ins folder

No thumbs up here so just wanted to say thanks!
Post a reply