
trentbuck@gmail.com (Trent W. Buck) writes:
Glenn McIntosh <neonsignal@meme.net.au> writes:
On 14/03/14 18:41, Trent W. Buck wrote:
1. Run setxkbmap -option ctrl:nocaps -option altwin:ctrl_win I can't see an option in setxkbmap to say "bloody well set this permanently?"
There are the XKBOPTIONS in /etc/default/keyboard, but I'm guessing you don't want this remapping as a system wide default?
I did that. If I plug in a keyboard after X has started, it forgets the settings that are set there.
(To be clear, I'm setting /etc/default/keyboard *and* calling setupcon on ~/.console-setup for tty logins *and* calling setxkbmap for X sessions.) At least part of the problem was XKBOPTIONS="altwin:ctrl_win ctrl:nocaps" is wrong, ignoring at least the first option; XKBOPTIONS="altwin:ctrl_win,ctrl:nocaps" honors at least the first option. (I don't have an external keyboard handy today to test the other half.)