How swap Caps lock with Control for Emacs

4 risposte [Ultimo contenuto]
Starfish
Offline
Iscritto: 04/20/2020

I want to swap the Control key with Caps Lock key in Trisquel 8.0 mini. I followed this Emacs wiki page (https://www.emacswiki.org/emacs/MovingTheCtrlKey). According to it inside /etc/defaults/keyboards XKBOPTIONS="ctrl:swapcaps" and ran the following dpkg-reconfigure command as mentioned. But it didn't work. I also tried to logout/login and reboot but it didn't work either. Do you have any solution?

yrk
yrk

I am a member!

Offline
Iscritto: 08/28/2012

name at domain writes:

> I want to swap the Control key with Caps Lock key in Trisquel 8.0
> mini. I followed this Emacs wiki page
> (https://www.emacswiki.org/emacs/MovingTheCtrlKey). According to it
> inside /etc/defaults/keyboards XKBOPTIONS="ctrl:swapcaps" and ran the
> following dpkg-reconfigure command as mentioned. But it didn't work. I
> also tried to logout/login and reboot but it didn't work either. Do
> you have any solution?
>

You can use ~/.Xmodmap. For instance, my ~/.Xmodmap:

"""
remove Lock = Caps_Lock
clear lock
add Mod4 = Caps_Lock
keysym Caps_Lock = Super_L Caps_Lock
"""

I use that because I run Emacs inside awesomewm.

--
"Cut your own wood and it will warm you twice"

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

In the "Layouts" tab of the "Keyboard Preferences", accessible from MATE's Control Center, you can tweak the keyboard layout after clicking on the "Options..." button. Under "Ctrl key position", "Swap Ctrl and Caps Lock" can be checked.

Starfish
Offline
Iscritto: 04/20/2020

I installed Trisquel Mini and it comes with LXDE and not MATE. I checked but no such options is availble in LXDE in graphically.

Magic Banana

I am a member!

I am a translator!

Offline
Iscritto: 07/24/2010

Sorry: I should have paid more attention when I read your post.