Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2981  / 2 Years ago, thu, may 26, 2022, 9:18:13

I tried doing it like follows (in autostart):



setxkbmap -option "ctrl:nocaps"


and it works, but only for a while - then the setting is reset back to original state. How can I make it persistent?



I use xfce4-xkb-plugin as my input language switcher, but it doesn't seem to have an option to set caps key function.


More From » 12.04

 Answers
3

Finally, I found what I was seeking for. The solution: remove xfce keyboard applet (didn't need to deinstall it, just deleting it from panel worked), install xxkb. Make sure the ~/.xxkbrc contents look something like this:



XXkb.mainwindow.geometry: 20x20+0+0
XXkb.mainwindow.label.background: black
XXkb.mainwindow.label.foreground: white
XXkb.mainwindow.label.font: -misc-*-r-*-14-*
XXkb.mainwindow.label.text.1: en
XXkb.mainwindow.label.text.2: ru
XXkb.controls.add_when_start: yes
XXkb.controls.two_state: no
XXkb.button.enable: no


And add the following to run at your session startup:



xxkb &
setxkbmap -layout us,<your layout> -option "grp:ctrl_shift_toggle,ctrl:nocaps"

[#32521] Friday, May 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
hamostic

Total Points: 403
Total Questions: 142
Total Answers: 112

Location: Iceland
Member since Sat, Sep 17, 2022
2 Years ago
;