trouble getting rid of capslock

5 risposte [Ultimo contenuto]
kerdadit
Offline
Iscritto: 06/06/2018

Greetings, I would like to disable capslock permanently and replace it with ctrl. I used this:

> sudo setxkbmap -option ctrl:nocaps

It works temporarily, but then inexplicably reverts back to the old caps-lock behavior. I also tried changing this file:

> /etc/default/keyboard

By using sudo to add the following line to it:

> XKBOPTIONS="ctrl:nocaps"

That line persists in the file but seems to have no effect.

I was hoping to find a set-it-and-forget-it command or configuration that would work without having to install another package like a tweak tool which would also be handy for future reference. I'm mystified by it randomly reverting back after using the setxkbmap command (without logging out).

I don't remember this ever happening on my other computer which also uses Trisquel 8. The biggest difference I'm aware of between this laptop and my other Trisquel 8 machine is this one uses an outdated version of libreboot, so my desktop clock only shows military time. I wonder if this capslock behavior is also related to the older version of libreboot? I don't know how to update Libreboot and am not quite ready to incapacitate this laptop due to a failed attempt since it is my goto machine. The instructions on the libreboot site were a little bit intimidating. This is an X200 Taurinus.

Thanks!

kerdadit
Offline
Iscritto: 06/06/2018

Just to clarify because my post is a little unclear: the capslock comes back mid-session, without me logging out or restarting the computer. I'd like to know the trick for setting this in the most permanent and reliable way if there is one.

chaosmonk

I am a member!

I am a translator!

Offline
Iscritto: 07/07/2017

I do all my key remapping with xmodmap, but depending on your desktop
environment there may be an easier way. Are you using MATE (Trisquel 8's
default) or are you using a different DE?

kerdadit
Offline
Iscritto: 06/06/2018

Thanks, I'll look at xmodmap. I'm using the default MATE.

chaosmonk

I am a member!

I am a translator!

Offline
Iscritto: 07/07/2017

> I'm using the default MATE.

In that case, the easiest thing to do will be to go to Control Center
and select "Keyboard". In the window that opens, go to the "Layout" tab
and select "Options". There, go to "Caps Lock key behavior" and either
disable Caps Lock or map it to something useful like ESC or Ctrl.

kerdadit
Offline
Iscritto: 06/06/2018

Perfect, thanks!