Page 1 of 1

Activating the mod4 (a.k.a Super) and other special keys

Posted: 4. Sep 2010, 16:36
by zAchAry

Code: Select all

$ xmodmap
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3      
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)
And the command xev gave no reaction when pressing it


I also got some key with an "Orange Toolbox"
Pressing this key when xev is running gave:

Code: Select all

KeyPress event, serial 34, synthetic NO, window 0x2400001,
    root 0xb8, subw 0x0, time 1735204, (644,-41), root:(951,307),
    state 0x0, keycode 156 (keysym 0x1008ff41, XF86Launch1), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2400001,
    root 0xb8, subw 0x0, time 1735232, (644,-41), root:(951,307),
    state 0x0, keycode 156 (keysym 0x1008ff41, XF86Launch1), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Special key "Volume Up"

Code: Select all

KeyPress event, serial 34, synthetic NO, window 0x2400001,
    root 0xb8, subw 0x0, time 1880205, (451,-79), root:(776,287),
    state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2400001,
    root 0xb8, subw 0x0, time 1880323, (451,-79), root:(776,287),
    state 0x0, keycode 123 (keysym 0x1008ff13, XF86AudioRaiseVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Special key "Volume Down"

Code: Select all

KeyPress event, serial 34, synthetic NO, window 0x2400001,
    root 0xb8, subw 0x0, time 1949701, (203,-73), root:(564,329),
    state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2400001,
    root 0xb8, subw 0x0, time 1949783, (203,-73), root:(564,329),
    state 0x0, keycode 122 (keysym 0x1008ff11, XF86AudioLowerVolume), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
Special key "Mute Volume"

Code: Select all

KeyPress event, serial 34, synthetic NO, window 0x2400001,
    root 0xb8, subw 0x0, time 1973556, (526,37), root:(905,457),
    state 0x0, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
    XLookupString gives 0 bytes: 
    XmbLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x2400001,
    root 0xb8, subw 0x0, time 1973638, (526,37), root:(905,457),
    state 0x0, keycode 121 (keysym 0x1008ff12, XF86AudioMute), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False
The Supre mod4 key didn't worked on Ubuntu 8.10 too (but back then I didn't even tried)

Re: Activating the mod4 (a.k.a Super) and other special keys

Posted: 4. Sep 2010, 19:24
by pwatk
I have key binds set for the volume keys and one (Super-L) to run a script to turn on/off my touchpad.

I find that it's a bit hit and miss as to weather the keys will work every time I turn the machine on. I read somewhere it might have something to do with the xfce-settings-helper but I haven't got around to looking into it further.

This probably wont help but I thought I'd throw it in there.

xfce4-volumed

Posted: 24. Sep 2010, 16:55
by zAchAry
Thank you ,lmello , 60% of the problem is now solved with xfce4-volumed.
Special keys "Volume Up", "Volume Down", "Mute Volume" are responding!

Now I need support for the mod4 (a.k.a Super) key and the "Orange Toolbox" (Special key).

Edit: problem is not problem are

Re: Activating the mod4 (a.k.a Super) and other special keys

Posted: 18. Dec 2010, 08:09
by zAchAry
80% - "Orange Toolbox" (Special key) - XF86Launch1

From my ~/.fluxbox/keys file

Code: Select all

XF86Launch1	:ExecCommand xfhelp4
XF86AudioRaiseVolume	:ExecCommand amixer set Master 5+
XF86AudioLowerVolume	:ExecCommand amixer set Master 5-
XF86AudioMute	:ExecCommand amixer set Master toggle
Awesome! and again, thanks for the tip http://www.salixos.org/forum/viewtopic.php?f=16&t=1687 pwatk.

(now... I need to wake up that little mod4 devil... the Evil Windows button)


Edit: LOL, I got a better Idea for it:

Code: Select all

XF86Launch1	:ExecCommand killall firefox-bin
:D[/i]


Edit: My Pg Up/Pg Down are not working too