Answer the question
In order to leave comments, you need to log in
How to change keyboard layout in i3w using capslock?
Hello.
There are several ways to replace, but none work.
Here's what I got.
exec "setxkbmap -layout us,ru"
exec "setxkbmap -option 'grp:alt_shift_toggle'"
#bindsym $mod+caps exec ~/.config/i3/i3-keyboard-layout/i3-keyboard-layout set us
#bindsym $mod+caps exec ~/.config/i3/i3-keyboard-layout/i3-keyboard-layout set ru
#setxkbmap -option grp:caps_toggle 'us,ru' -option grp_led:caps
Answer the question
In order to leave comments, you need to log in
It is not necessary to put these commands in ~/.config/i3/config because exec will just invoke the shell. For example, I have these commands in ~/.xinitrc .
See all available options for setxkbmap in man
Under "Switching to another layout". For example, to switch using capslock, the following options should work:
setxkbmap -layout us,ru
setxkbmap -option 'grp:caps_toggle'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question