You are not logged in.

#1 2020-03-14 14:42:01

summerer
Member
From: Germany
Registered: 2014-01-25
Posts: 54

[SOLVED] Xmodmap remapping CapsLock issue

Hello guys,

I am having an issue applying .Xmodmap on login.
My goal is to remap the CapsLock key to act as backslash and I set Shift+CapsLock to act as CapsLock.

The following is my .Xmodmap file:

clear Lock
keycode 66 = backslash Caps_Lock

I am currently using i3 and xinit to start X. xmodmap is set to load .Xmodmap in .xinitrc.
The issue is that CapsLock prints a backslash but it also triggers CapsLock which it shouldn't.

By the way, I got the keycode 66 from xev as described somewhere in the wiki.

Any ideas as to what might be causing the weird behavior that capslock does two thing on being pressed?

Last edited by summerer (2020-03-14 16:37:05)

Offline

#2 2020-03-14 16:30:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,953

Re: [SOLVED] Xmodmap remapping CapsLock issue

Try

setxkbmap -option caps:none
xmodmap .Xmodmap

Offline

#3 2020-03-14 16:36:49

summerer
Member
From: Germany
Registered: 2014-01-25
Posts: 54

Re: [SOLVED] Xmodmap remapping CapsLock issue

Thanks seth,

I added

 setxkbmap -option caps:none 

to my .xinitrc and it seems to have fixed the issue.

Offline

#4 2020-03-14 16:38:42

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,953

Re: [SOLVED] Xmodmap remapping CapsLock issue

You might want to turn this into a static config, see https://wiki.archlinux.org/index.php/Xo … tion_files

Offline

#5 2020-03-14 16:41:01

summerer
Member
From: Germany
Registered: 2014-01-25
Posts: 54

Re: [SOLVED] Xmodmap remapping CapsLock issue

Good to know, thanks!

Offline

Board footer

Powered by FluxBB