Score:0

setxkbmap randomly stops working

us flag
alf

I have the following in my ~/.profile:

setxkbmap us,no -option "grp:shift_caps_toggle" -option "caps:escape"

and I am running i3 https://i3wm.org/ under Ubuntu 20.04. I am using shift+caps to toggle keyboard layouts between "us" and "no", and I have replaced my caps lock with escape.

This randomly stops working and I have to run the setxkbmap ... command again in a terminal.

Any idea why this happens?

Gunnar Hjalmarsson avatar
uz flag
This question: [These commands (setxkbmap and xcape) are in .profile but are not being executed on login](https://askubuntu.com/questions/1470596/these-commands-setxkbmap-and-xcape-are-in-profile-but-are-not-being-executed) may be helpful in that case.
alf avatar
us flag
alf
Similar, but I'm certain that the command is executed and that it does indeed work as intended on login. However, after some time it stops working. I'm assuming that some sort of ubuntu software overwrites my setxkbmap settings somehow, but I'm not sure where to look.
Gunnar Hjalmarsson avatar
uz flag
Note the `sleep` command in that answer. (But don't put `sleep` into `~/.profile`.)
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.