You are not logged in.

#1 2011-03-18 18:35:05

kelnoky
Member
Registered: 2007-11-20
Posts: 135

[Solved] Caps_Lock as mod4 after recent update

I always had caps configured as mod4 (the windows key) via an entry in ~/.Xmodmap. This doesn't seem to work anymore after the recent update, there are more topics on this here and also a ticket on the bugtracker. Now it seems it's really easy to achieve my wanted behaviour with setxkbmap options. As suggested here I can just do

setxkbmap -option ctrl:nocaps

in order to get caps to work like the control key. Which works perfectly, but I can't figure out how to do it with mod4, since neither "mod4:nocaps" nor "Super_L:nocaps" works. Since I can't find anything in the setxkbmap manpage, I am stumped, thus asking for help here for this seemingly simple piece of remapping. smile

Last edited by kelnoky (2011-03-19 02:50:10)

Offline

#2 2011-03-19 01:59:17

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Solved] Caps_Lock as mod4 after recent update

All of the options are listed here:

/usr/share/X11/xkb/rules/evdev.lst

Offline

#3 2011-03-19 02:49:51

kelnoky
Member
Registered: 2007-11-20
Posts: 135

Re: [Solved] Caps_Lock as mod4 after recent update

Thank you! I was in the xkb folder searching for that, but it seemed pointless. This is what I needed! After reading a bit in that file, this is the right command to do what I need:

setxkbmap -option caps:super

Solved. smile

Offline

#4 2011-03-19 05:03:33

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: [Solved] Caps_Lock as mod4 after recent update

skottish wrote:

All of the options are listed here:

/usr/share/X11/xkb/rules/evdev.lst

Isn't it this one?

/usr/share/X11/xkb/rules/base.lst

To know or not to know ...
... the questions remain forever.

Offline

#5 2011-03-19 16:40:44

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [Solved] Caps_Lock as mod4 after recent update

bernarcher wrote:
skottish wrote:

All of the options are listed here:

/usr/share/X11/xkb/rules/evdev.lst

Isn't it this one?

/usr/share/X11/xkb/rules/base.lst

I didn't know that one. They are the same. xorg.lst points to base.lst, so maybe the best advice is to use base.lst and not evdev.lst. Thanks for that bernarcher.

Offline

Board footer

Powered by FluxBB