You are not logged in.
I'm using Plasma/i3. recently, and I don't recall changing any config in the interim, my caps lock key stopped responding. I eventually learned it is now doing the same as my i3 meta key (windows key on my setup).
how do I restore the Caps Lock functionality? there is nothing in my i3.conf that assigns it to $mod.
set $mod Mod4 is the only relevant line.
Last edited by shoelesshunter (2022-02-11 22:30:51)
Offline
Install "xorg-setxkbmap" and add "exec --no-startup-id setxkbmap -option caps:caps" to your i3 config. Hacky solution but should work.
Offline
that did not work for me.
for what it's worth, I have no indicator light on Caps Lock wither (since this happened)
Offline
setxkbmap -print -queryOffline
here's what I have.
xkb_keymap {
xkb_keycodes { include "evdev+aliases(qwerty)" };
xkb_types { include "complete" };
xkb_compat { include "complete" };
xkb_symbols { include "pc+us+de:2+eu:3+inet(evdev)+altwin(meta_alt)+capslock(super)" };
xkb_geometry { include "pc(pc104)" };
};
rules: evdev
model: rapidaccess
layout: us,de,eu
options: caps:super,altwin:meta_altOffline
Thar's a more elaborate config that does't happen by accident.
Wherever yuo're setting the layout, the caps:super causes the current behavior. It *might* be implicit t the eu layout.
To get rid of it, you'll have to clear the optiosn (setxkbmap -option "") and optionally restore the remainin options (setxkbmap -option "altwin:meta_alt")
Offline
that worked. thanks. I don't know ow how I got that config, but it works now.
Offline
something reverted the key to the old (odd) layout. I hadn't changed a thing.
I fixed it again, but I did nothing to cause it to revert like that.
edit: launching Steam game client disables my caps lock and sets that odd config. I noticed it when I just began playing a game.
Last edited by shoelesshunter (2022-02-07 20:21:38)
Offline
What does the setxkbmap output look like directly after a login vs. launching steam? (though the behavior is odd indeed - why would steam alter your keyboard tbw?)
Offline
Steam is changing my keyboard setting upon launch. I have a game where caps lock is necessary. I jump to a new workspace and clear the settings it creates. the key then behaves normally.
for what it's worth. this particular game, after caps lock is working, misbehaves.
the game is an RPG. shift is always run. caps lock simply keeps the character running. during the game, the function of caps lock
becomes inverted.
regular use: to run, I need caps lock or shift
inverted: I need caps lock or shift to walk, as the character runs automatically without shift or caps lock in use.
Offline
it's now happening without using Steam. using ranger and mpv, I loose caps lock and tabs until I manually reset the config as explained to me.
Offline
Does it happen when you switch layous?
Offline
this last time, I was simply watching a movie and using ranger. all windows were already open. I opened another alacritty, and I lost caps lock as well as tab. for now, I set the command you showed me to run every second in crontab.
I can disable that cron job pif replicating it would lead to a better solution.
Offline
I'd rather tet´st layout switching directly. Since you don't configure a shortcut for that - how do you go about that anyway?
Offline
do you mean like switching from tabs/stacked/panel?
I use the i3 defaults. $mod (s,t,e)
Offline
There're three layouts configured, us,de,eu - why, and how do you switch between them?
Offline
oh, I changed them in the KDE settings. I did it to temporarily allow for é to be typed.
should I disable all but the US?
Offline
You could try, though I worried that some keyboard layout manager was simply going wild.
iirc the KDE settings allow setting xkb options as well - maybe have a look a that tab, too.
Offline