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!
/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 09:19