I’m on KDE Plasma on Wayland. I use the KWin shortcuts to Switch to Window to the Right etc. I also use the Move Mouse to Focus shortcut. I’d like for the move mouse shortcut to be triggered when I use any of the switch window shortcuts.
I can’t seem to apply the same keybind to multiple shortcuts, or more specifically activate a sequence of shortcuts with one keybind, but that would be the simplest solution if possible. Alternately I’ve tried looking into activating shortcuts / KDE actions via scripting, i.e. a bash script, which I could set a custom keybind for. I haven’t figured that out either.
@laurapigeon ,
Being on Plasma Wayland consider using ydotool for your mini project.
I don’t want to make excuses about how complicated it can be but …
At first it needs some readings. Introduction to using ydotool
I didn’t find the above type of scripting compact enough, so I installed like this.
If you can tell me more about the desired sequence, I will be happy to help.
I have found that qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.shortcutNames can output the set of kwin shortcuts, which includes “Switch Window Right” etc. & “MoveMouseToFocus”.
qdbus org.kde.kglobalaccel /component/kwin org.kde.kglobalaccel.Component.invokeShortcut "shortcut name" can invoke the shortcut from the shell.
So I have created simple bash scripts which invoke 2 or more qdbus commands, and set shortcuts to invoke each script.