Bug 401623 - Disable Ctrl+Alt+Fx with Ignore global shortcuts window rule
Summary: Disable Ctrl+Alt+Fx with Ignore global shortcuts window rule
Status: RESOLVED UNMAINTAINED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_khotkeys (show other bugs)
Version: 5.20.3
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michael Jansen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-01 22:18 UTC by Andrew Shark
Modified: 2024-03-04 19:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Shark 2018-12-01 22:18:51 UTC
In special window settings in Appearance & Fixes tab we have "Ignore global shortcuts" rule. It works, except of shortcuts used for switching to tty (i.e. Ctrl+Alt+F2). Generally, this rule is used for virtual machines and so on, so users want to pass Ctrl+Alt+Fx combination to active window (teamviewer, virtualbox, etc). But it is handled by xserver, which switches your local machine to tty.
So I think it makes sense to also disable these combos on a xserver.

I have explored this a bit and created this script:
https://github.com/Ashark/aten-ip8000/blob/master/srvrkeys

The main idea is to run "setxkbmap -option srvrkeys:none" when window gets focus and run "setxkbmap -option" when it looses it.

Operating System: Arch Linux 
KDE Plasma Version: 5.14.4
Qt Version: 5.11.2
KDE Frameworks Version: 5.52.0
Comment 1 Martin Flöser 2018-12-02 07:31:49 UTC
I'm sorry but this is outside the scope of KWin and we are feature frozen on X11.
Comment 2 Andrew Shark 2018-12-02 07:49:38 UTC
Ok, I was not sure it is going to kwin product. Do you mean that any X11 features for any component in kde is feature frozen? If no, maybe then this should go to khotkeys? Sorry if I am wrong.
Comment 3 Nate Graham 2024-03-04 19:41:59 UTC
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.