Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 506  / 3 Years ago, mon, november 1, 2021, 4:13:32

I've been baffled about this for a while. I've been trying to figure out why every time I press CapsLock key on my netbook(of some obscure make) keyboard Ubuntu will not only toggle capslock key state but also launch Thunderbird. Do you have any idea how to fix this?



Additional info:



Output of capslock KeyPress event (requested by Tom Brossman)



KeyPress event, serial 54, synthetic NO, window 0x3800001,
root 0xaa, subw 0x0, time 453152, (14,-13), root:(715,38),
state 0x2, keycode 163 (keysym 0x1008ff19, XF86Mail), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

More From » keyboard

 Answers
5

Try making a new plain text file called .Xmodmap and put it in your home directory (don't forget the leading dot). In it, paste this:




keycode 163 = Caps_Lock




Save and close the file, then enter this in a terminal:



xmodmap ~/.Xmodmap


The first code should remap the Caps Lock key to the correct operation, the second should enable it so you see the desired change immediately.



Note that the .Xmodmap file you create at the beginning has to be at the root of your Home directory, and it will be a hidden file. Press Ctrl + H to see hidden files if you lose track of where it went.



If it works correctly now you are all done, you can close any open text files or terminal windows. The next time you boot up Ubuntu should see your custom .Xmodmap file and default to using it automatically. If something didn't work, please edit your question so I (or someone else) can give you some more help.


[#37223] Tuesday, November 2, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
admin

Total Points: 459
Total Questions: 112
Total Answers: 109

Location: Equatorial Guinea
Member since Sun, Feb 14, 2021
3 Years ago
;