You are not logged in.

#1 2012-06-12 10:27:28

hoanglan87
Member
Registered: 2009-01-01
Posts: 8

[SOLVED] xmodmap not affect firefox

I remap some dead keys on my keyboard with xmodmap. They're working with all programs but firefox. Could anyone help me? This is my ~/.xstart. I called it after system start.
~/.xinitrc:

exec ck-launch-session dbus-launch ~/.xstart

~/.xstart:

export GTK_IM_MODULE=ibus
export XMODIFIERS=@im=ibus
export QT_IM_MODULE=ibus 

xmodmap -e "keycode 108 = 0x70" &
xmodmap -e "keycode 62 = 0xff52" &
xmodmap -e "keycode 105 = 0xff54" &
xmodmap -e "keycode 135 = 0xff1b" &

ibus-daemon -d -x &
nautilus -n &
pidgin &
firefox &
skype &

avant-window-navigator &
wicd-gtk -t &
gnome-do &
thunderbird &
dropboxd &
compiz --sm-disable --ignore-desktop-hints ccp


SOLVED:
Add/change a line:

    Option "XkbVariant" "intl"

/etc/X11/xorg.conf.d/10-evdev.conf

    Section "InputClass"
        Identifier "evdev keyboard catchall"
        MatchIsKeyboard "on"
        MatchDevicePath "/dev/input/event*"
        Driver "evdev"
        Option "XkbModel" "asus_laptop"
        Option "XkbVariant" "intl"
        Option "XkbLayout" "us"
    EndSection

Last edited by hoanglan87 (2012-07-05 07:23:55)

Offline

#2 2012-06-12 11:09:56

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: [SOLVED] xmodmap not affect firefox

The 0xff.. are CJK full width characters, do they really work in other applications?

Just use the names:

xmodmap -e "keycode 108 = p P" &
xmodmap -e "keycode 62 = r R" &
xmodmap -e "keycode 105 = t T" &
xmodmap -e "keycode 135 = semicolon colon" &

Last edited by Procyon (2012-06-12 11:11:24)

Offline

#3 2012-06-13 01:43:39

hoanglan87
Member
Registered: 2009-01-01
Posts: 8

Re: [SOLVED] xmodmap not affect firefox

Yes, they really work with other. Remap esc key to App key, up to right shift, down to right ctrl, p to right alt. Just app key work in firefox (as esc). I tried:

xmodmap -e "keycode 108 = p"

I see it didn't work with firefox only.

Last edited by hoanglan87 (2012-06-13 02:00:57)

Offline

Board footer

Powered by FluxBB