Since upgrading to KDE frameworks 5.41 (from 5.38 I think?) custom shortcuts don't work when the "Action" points to a shell script. To test: I created a new custom shortcut, assigned Meta-Z to it, and wrote "/usr/local/bin/test_shortcut" as its Action. /usr/local/bin/test_shortcut contains: --------------------- #!/bin/bash /usr/bin/kwrite --------------------- Pressing Meta-Z (Win-Z) doesn't do anything except maybe flickering the active window titlebar. Running the shell script directly runs kwrite. Putting "/usr/bin/kwrite" into the Action field works, it runs kwrite. Thanks
Upon further investigation, I have to correct the report. Basically, the shortcuts fail only if the shell script doesn't have "#!/bin/bash" in the beginning. This used to work in older versions. They also fail with krunner.
Reassigning to khotkeys as this provides the "custom shortcuts".
I doubt that 'khotkeys' looks at the contents of the assigned scripts. I have no idea where to reassign to, though.
As announced in https://pointieststick.com/2023/07/26/what-we-plan-to-remove-in-plasma-6/ and https://community.kde.org/Plasma/Plasma_6#Removals, I'm afraid KHotKeys has reached end-of-life in Plasma 6. Accordingly, all bug reports and feature requests for it must be closed now. Most of what KHotKeys could do can already be done with the newer KGlobalAccel system in Plasma 6. A few features such as mouse gestures and triggering conditions based on changes to window states are not yet implemented in the new system. These will be added in the future if and when resources materialize for them, and/or when a kind soul submits patches to implement them! :) Meanwhile, the 3rd-party "Mouse Actions" app (https://github.com/jersou/mouse-actions) may be usable for implementing your own mouse gestures again. Thanks for your understanding, everyone.