You are not logged in.

#1 2009-07-16 15:06:33

V for Vivian
Member
Registered: 2009-04-28
Posts: 52

xmodmap works only in xterm/terminal/konsole

Hi,

This problem drives me crazy. I use xmodmap to set my key code 134 to ISO_Level3_Shift so I can type @ and # and stuff. This works great in the xterm / terminal / konosle but not in firefox, mousepad or any other graphical application. I used xfce4, now I'm using kde, the problem is the same. It worked with xfce4 since I installed Arch and then stopped after an update, I think.

command to set the keyboard layout (which apparently lacks the key to write # and stuff)

setxkbmap -model macbook79 -layout ch -variant

.Xmodmap

keycode 134 = ISO_Level3_Shift

command to set the key

xmodmap ./.Xmodmap

xev output for the key

KeyRelease event, serial 34, synthetic NO, window 0x3600001,
    root 0x13c, subw 0x0, time 2857430, (154,-17), root:(1411,43),
    state 0xc0, keycode 134 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

Any ideas?

Thanks!
viv


YES WE CAN
(but that doesn't necessarily mean we're going to)

Offline

#2 2009-07-16 17:40:30

benob
Member
Registered: 2008-11-11
Posts: 187

Re: xmodmap works only in xterm/terminal/konsole

What if you set your keyboard layout in xfce settings, and add the xmodmap loader to "sessions and startup > application autostart"?
It worked for me (although xfce tends to forget about my alternate keyboard mapping from time to time).

Offline

#3 2009-07-16 20:14:38

V for Vivian
Member
Registered: 2009-04-28
Posts: 52

Re: xmodmap works only in xterm/terminal/konsole

Sadly the xmodmap autostart seems to have no effect at all.

edit: Somehow the problem was connected to the key I wanted to use. It looks like it was activated twice when pressed. No idea what this means.

Last edited by V for Vivian (2009-09-08 21:58:58)


YES WE CAN
(but that doesn't necessarily mean we're going to)

Offline

Board footer

Powered by FluxBB