Registered Member
|
Due to a bug in Ubuntu [1], I must set then remove the "Swap CapsLock and Escape" feature in System Settings [2] often. Is there a way that I can script this rather than opening the window and playing with the mouse? I just need this option to be, sleep 1, then unset as a workaround for the Ubuntu bug.
Thanks. [1] https://bugs.launchpad.net/ubuntu/+sour ... ug/1510501 [2] System Settings -> Input Devices -> Keyboard -> Advanced -> CapsLock Key Behavior -> Swap CapsLock and Escape
dotancohen, proud to be a member of KDE forums since 2008-Oct.
|
Administrator
|
I wonder if using dbus (if possible) would help, but I am not sure what's in charge of handling that.
"Violence is the last refuge of the incompetent."
Plasma FAQ maintainer - Plasma programming with Python |
|
The keyboard is re-added "cleanly" (but according to X11 configs) on attaching it, KDE basically simply calls setxkb on login/keyboard layout change.
Run
Notice that $ID can be obtained by calling "xinput" (prints a list of all devices) and is NOT static. The imo better approach to handle this is to configure keyboards /etc/X11/xorg.conf.d/11-keyboard.conf
Those rules will be auto-applied on adding keyboards (same is possible for mice) |
Registered Member
|
Thank you, the below code works perfectly:
I will experiment with this, as in fact I do want this behaviour for all keyboards. Thank you very much!
dotancohen, proud to be a member of KDE forums since 2008-Oct.
|
Registered users: Bing [Bot], Evergrowing, Google [Bot]