To use this script
-
Install xdotool:
$ sudo apt install xdotool
-
Install this script to /usr/local/bin:
$ sudo cp path/to/file/permafocus.sh /usr/local/bin/
(path/to/file should be replaced by the actual path to the folder containing script, for example ~/Downloads/) -
Make the file executable:
$ sudo chmod +x /usr/local/bin/permafocus.sh
-
Follow this guide to create a custom shortcut, use any name and shortcut key you prefer. In the command field type
permafocus.sh toggle
Now whenever you press that shortcut key, the window currently in focus will keep the focus even when you click on another window. Press it again to stop this behavior.
To use it with renoise, you can press your shortcut whenever you start working on a song in renoise and press it again, disabling focus grabbing, when you need to input something into your plugin or another window. But note that it should be pressed when main renoise window is in focus, not a plugin or any other window.
Please note that I can’t test this script in every environment and setup, so it might not run correctly on some systems. Feel free to contact me if this is the case and I’d be happy to try to help.