I want to create a toggle key to switch between two frequently used tools.
I thought I could switch the active tool using "gimp-context-set-paint-method," but it seems that this only changes the active tool within the script and does not modify the active tool assigned to the device.
Is it impossible to achieve this functionality with Script-Fu?