Score:0

Using dconf write or gsettings set several times overwrite the previous command

mx flag

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

Score:0
mx flag

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']"

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.