sonic-pi icon indicating copy to clipboard operation
sonic-pi copied to clipboard

Can't use Alt key for keyboard shortcuts on Xmonad with Alt as Xmonad modifier

Open T-X opened this issue 2 years ago • 0 comments

I'm using the Xmonad tiling window manager (https://github.com/xmonad/xmonad) on Linux / Debian Sid. It exclusively uses the Alt key to control it for me.

It would be nice if Sonic Pi could use the Ctrl key instead for its shortcuts, like many/most other applications do. Or if the Sonic Pi shortcuts were at least configurable.

In the forum I found this post which says that changing the shortcuts in Sonic Pi is currently not possible: https://in-thread.sonic-pi.net/t/how-to-configure-keyboard-keys-in-sonic-pi/6490/2. I tried using the suggested "autokey" application to remap "Alt+r" to "Ctrl+r" exclusively for the Sonic Pi application. But it does not seem to work for me, it only seems to work for pasting text, without the "Alt" key for me.

Alternatively, it would be nice if someone could point me to where in the Sonic Pi code I might be able to change this.


Edit: I found it in the code, in app/gui/qt/mainwindow.cpp. And basically changed it everywhere in there to what's defined for #ifdef Q_OS_MAC, too. That works better for me on Linux with Xmonad.

T-X avatar Nov 13 '22 15:11 T-X