0

I would like to remap several different keys of my keyboard.Namely: I want to remap caps Lock to escape function and remap left alt to right alt function. For this I used the following commands:

dconf write /org/gnome/desktop/input-sources/xkb-options "['caps:escape']" 
dconf write /org/gnome/desktop/input-sources/xkb-options "['lv3:lalt_switch','lv3:ralt-alt']"

Using gsettings set instead of dconf write has the same effect:

gsettings set org.gnome.desktop.input-sources xkb-options "['caps:escape']"
gsettings set org.gnome.desktop.input-sources xkb-options "['lv3:lalt_switch','lv3:ralt-alt']"

As mentionned in a similar question (Remap several key: Alt_L key to have the same behavior as Alt_R (or Alt gr) + remap caps lock to escape), the first command seems to be overwritten by the second one.

How is it possible to have those 2 commands effective at the same time

1 Answer 1

0

Ok, the answer was easy: it was just needed to put the 3 commands in the same line ... ;):

 dconf write /org/gnome/desktop/input-sources/xkb-options "['lv3:lalt_switch','lv3:ralt-alt', 'caps:escape']"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .