Re: problem mapping both Super and Hyper



Did you use xmodmap?

I create .xmodmaprc and add

xmodmap ~/.xmodmaprc

to .xinitrc, and it works. The .xmodmap is here. Not exact what you
want, but hope it's helpful.

remove Lock = Caps_Lock
remove Control = Control_L
clear mod3
clear mod4
keycode 9 = Caps_Lock
keycode 66 = Control_L
keycode 37 = Escape
keycode 115 = Super_L
keycode 117 = Hyper_R
add Lock = Caps_Lock
add Control = Control_L
add mod3 = Hyper_R
add mod4 = Super_L


On 1/16/09, Michael Schmitz <Michael Schmitz tietoenator com> wrote:
>
> Hello all,
>
> I just switched from SCWM to Sawfish, but I can't setup key binding
> the way I would like to.
>
> I configured the xkb extension to generate a Super_L keysym when I
> press my left Windows key, and Hyper_L when pressing CAPS.
>
> In my .sawfishc, I have the following
>
> (defun hyper-b3 ()
>   (display-message "pressed H-button3"))
>
> (defun super-b3 ()
>   (display-message "pressed s-button3"))
>
> (bind-keys global-keymap "Hyper-Button3-Click" hyper-b3)
> (bind-keys global-keymap "Super-Button3-Click" super-b3)
>
> Now, when I restart Sawfish and press button3 holding the CAPS key
> (mapped to Hyper_L), I get a tiny window displaying "pressed
> H-button3". Fine!
>
> Unfortunately I get the same when I press button3 holding the left
> Windows key.
>
> Can anybody tell me why I can't map Hyper and Super independently?
>
> Thanks,
> Michael.
>


-- 
Regards
Lei


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]