Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
13
rated 0 times [  13] [ 0]  / answers: 1 / hits: 8838  / 2 Years ago, thu, june 16, 2022, 12:05:59

I've been trying to swap CAPS LOCK key with Tab key. So the CAPS LOCK key shouldn't turn on the CAPS anymore, instead, act as the Tab key. Some people told me that I should create a .Xmodmap file in the ~/ directory. But I have no idea what's next.



Any suggestions?


More From » keyboard

 Answers
3

First list your current settings with



xmodmap -pke|egrep  -e '(Tab|Caps)'


I get this output



keycode  23 = Tab ISO_Left_Tab Tab ISO_Left_Tab
keycode 66 = Caps_Lock NoSymbol Caps_Lock


So, temporarily set your keymap



xmodmap -e "keycode  66 = Tab ISO_Left_Tab Tab ISO_Left_Tab"
xmodmap -e "keycode 23 = Caps_Lock NoSymbol Caps_Lock"


Assuming that works, add those lines to ~/.Xmodmap



keycode  66 = Tab ISO_Left_Tab Tab ISO_Left_Tab
keycode 23 = Caps_Lock NoSymbol Caps_Lock


You can then either log out and back in or



xmodmap ~/.Xmodmap

[#41015] Saturday, June 18, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
adedes

Total Points: 454
Total Questions: 114
Total Answers: 111

Location: Turks and Caicos Islands
Member since Fri, May 8, 2020
4 Years ago
;