Bug 477653

Summary: Add "Caps Lock (while pressed)" option to switch keyboard layouts
Product: [I don't know] kde Reporter: alphabitserial <alphabitserial>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED UPSTREAM    
Severity: wishlist CC: nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description alphabitserial 2023-11-28 07:38:51 UTC
Under System Settings → Keyboard → Advanced there's currently an option "Caps Lock (while pressed); Alt+Caps Lock for the original Caps Lock action." I would love if there were an option that functions just like this without the Alt+Caps Lock bind. Basically, just a "Caps Lock (while pressed)" option with no extra behavior from the Alt key.

I use a non-Qwerty keyboard layout but a number of applications that support Vim motions. I've configured my system so that I'm always in my preferred layout, but while holding Caps Lock, it temporarily switches to Qwerty so I can easily use the home row for movement without rebinding my editor, terminal, etc.  In some applications, for example, Zellij (a terminal multiplexer), includes default keybinds Alt+[hjkl] to navigate between panes. However, I can't make use of it because Alt+Caps Lock will toggle capitalization instead.
Comment 1 Nate Graham 2023-11-29 21:43:23 UTC
These options all come from https://github.com/xkbcommon/libxkbcommon; I'm afraid you'll need to request it there. Good luck!