`Swap Esc and Caps Lock` stopped working

This stopped functioning for me about 2-3 weeks ago. Found under settings, keyboard, key bindings.

Anyone else?

Operating System: EndeavourOS 
KDE Plasma Version: 6.6.3
KDE Frameworks Version: 6.24.0
Qt Version: 6.11.0
Kernel Version: 6.19.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 32 GiB of RAM (30.5 GiB usable)
Graphics Processor 1: AMD Radeon RX 580 Series
Graphics Processor 2: AMD Ryzen 5 7600X 6-Core Processor

if the plasma settings > input devices > keyboard > advanced tab options are not working, then…

have a look at cat /etc/default/keyboard and see what it lists as your XKBOPTIONS=

you can change them by running sudo dpkg-reconfigure keyboard-configuration

EndeavourOS uses pacman so dpkg-reconfigure won’t work.

There is no such option :confused:

$ cat /etc/default/keyboard
# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
BACKSPACE="guess"

It was working fine, then it just stopped working, without me having changed anything related (as far as I can tell).

do you have a backup of that file from the time it was working, so you can compare?

also you can look at ~/.config/kxkbrc for Options= which should have the same info.

if nothing is listed there either and the GUI settings show it as set, then you have something borked about your install

maybe try a new user to see if the problem persists.

mine says Options=lv3:ralt_switch,compose:rctrl because i use the right Alt key for level 3 access and the right ctrl key for the compose key.

I’m not too confident with this, it’s a bit of a minefield depending on all other settings…

However, under Keyboard:

Caps Lock behaviour
  • Make Caps Lock an additional Esc, and Shift+Caps Lock is the compose.

This :brain: makes ‘Compose’ work from Shift_Caps and Capslock is a better position for Esc… but the original Escape key is redundant - out there in a corner and unused for the most part.

Compatibility Options
  • Both Shifts together enable Caps Lock; one Shift key disables it.

This is a nicer way to implement Caps Lock (actually rarely used) and it’s also possible to set an audible confirmation of ‘lock on’ and ‘lock off’ with some suitable ‘latch/unlatch’ type sounds in notifications.

That leaves the Right Alt key free as a 3rd level composer, useful for typing (3÷√2×4)·5=30 if that’s your thing…

TL;DR Consider dropping switching CapsLock to the Esc key… but definitely put Escape on CapsLock, then a double-key mash to get CapsLock.

Worry about the silly ‘Esc’ key later.

So I checked another user on this computer, and the swap escape and capslock works just fine there.

I had a secondary layout that was installed, I decided that since I wasn’t actually using it yet, I would remove it. That solved my issue, that is, escape and capslock swap is working via the gui.