I was always annoyed that in linux renoise version you have to always change focus from a plugin window to DAW window if you want to play a few notes and see how it sounds.
So I made a very simple script that uses xdotool to solve this issue. It basically waits for focus change events and as soon as one happens, it switches focus back to the renoise window.
Here’s the script itself.
You can just download it, put it into ~/bin or ~/.local/bin or /usr/local/bin depending on your distro and personal preferences, make it executable with chmod +x and use
permafocus.sh start to fix the focus at currently focused window,
permafocus.sh stop to stop it and
permafocus.sh toggle to, well, toggle it.
You might have to install xdotool to use it.
Suggested use would be to use your window manager or hotkey daemon to bind this script to some key combination. I personally use win+s to toggle permafocus.
I hope this is helpful to somebody here.
My God man this is super helpful but please can you tell me step by step how to do it in Ubuntu?This is a major problem in Renoise in Linux and many many people will be thankful if it works ok
Step by step instructions to use this script. (commands provided after $ are to be run in a terminal session)
- 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
- 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
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.
Hope this helps!
Great will try and respond tomorrow
Hey man sorry for the late reply i tested it today and it works perfectly i cant thank you enough.I think many people need this but they haven’t seen this thread so i will make a new one just to make them find it.
Sounds nice although a bit hacky. Are there any drawbacks to this? Some plugins might want you to write text inside to their windows with keyboard. Wouldn’t this prevent that?
Edit: It seems you addressed this in your another post. I might give it a try although the issue does not bother me that much. Any idea why this is the case in the first place in Linux only?
Whoha! This is what I’ve been searching for, (for many years). It works great! Many many thanks! <3
This should be part of the Linux FAQ in the Wiki Pages!
Thanks for this script, Olga! Works great in Linux Mint.
Sorry for the necrobump but is there still not a better solution that this to be able to play plugins using the computer keyboard while adjusting them?
Or does this work with VST2 for anybody else? For me it only works with DSSI and VST3, which limits me to literally a handful of synths and takes away favourites such a Helm.