You are not logged in.

#1 2015-04-10 15:02:59

yolenoyer
Member
Registered: 2014-10-01
Posts: 11

xmodmap : problem when loading at startup

I would want like to transform my "Menu" key into the Mod3 modifier. I use Fluxbox as a WM.

So i put this into a file (~/.xmodmaprc):

! Using Eisu_Shift to prevent the "Menu" key default behaviour in some applications
keycode 135 = Eisu_Shift
clear Mod3
add Mod3 = Eisu_Shift

And i added this line to ~/.fluxbox/startup:

xmodmap ~/.xmodmaprc

But at startup, it does only half of the job : the "Menu" key is well mapped to "Eisu_Shift" keysym, but the modifier is not added (as I can see with xmodmap -pm).
The weird thing is that when i launch the command "xmodmap ~/.xmodmaprc" in a console, everything is working well.

Recently I discovered the file /etc/X11/xorg.conf.d/00-keyboard.conf, which is read at startup, which seems to be used in conjunction with setxkbmap:

Section "InputClass"
        Identifier "system-keyboard"
        MatchIsKeyboard "on"
        Option "XkbLayout" "fr"
EndSection

Maybe there is a "conflict"  between setxkbmap and xmodmap...

My only goal is to set the Menu key as Mod3.
How can i do this properly (or not!)? Any idea?

Offline

Board footer

Powered by FluxBB