I've updated to Fedora 26 and now my Capslock key behaves strangely (or not at all). In Fedora 25 the xkb setting worked perfectly for both my Ctrl and Caps changes. I've selected "Caps as Ctrl" in Gnome Tweak Tools, but Caps just does nothing at all! Using xev I get the following output for the caps key:

KeyRelease event, serial 36, synthetic NO, window 0x2600001,
    root 0x273, subw 0x0, time 2293119, (164,-21), root:(271,94),
    state 0x10, keycode 66 (keysym 0x0, NoSymbol), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

the bracket after keycode should contain LCtrl instead of NoSymbol. I've also tried deactivating and or activating Caps. As well as that I've tried to modify /usr/share/X11/xkb/keycodes/evdev and use Caps = 37; which would make Caps similar to Left Control - but this as well has no effect whatsoever. Please help me - since wayland I'm kinda lost here!

I've also changed Left Control and Alt by:

<LALT> = 37; //64;
<LCTL> = 64; //37;

In the previously stated file -> this still works like a charm!

  • IIRC Wayland relies on XKB for keyboard modifications. I've no idea what Gnome Tweak Tools does, but possibly the wrong thing. Tinkering with /usr/share/X11/xkb will likely not do what you want it to do. A good intro is here. I don't know details how Wayland handles this, as I don't run Wayland, but there should be a generic way to tell it which XKB configuration to use ... – dirkt Jul 13 '17 at 9:19

I temporarily (hopefully this will get some love) fixed it: In gnome tweak tools under Typing I deselected every entry, but "Capslock is also Control". No idea why the program lists many options as duplicates like "Capslock - Disabled" and "Capslock is disabled" and most of them are ambiguously labeled, such that capslock-control is modified by many options.

| improve this answer | |

Gnome Tweaks Keyboard & Mouse Addition Layout Option This is were you will find Caps Lock option.

| improve this answer | |

I am leaving this reply for the completeness sake, since there are not many resources dealing with non-Gnome, or KDE environments and Wayland.

I am on Debian Buster and run Fluxbox as a WM on top of Wayland. Doing the usual, ie setting the mappings in .xmodmaprc actually did the job:

remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.