>>>>> "AE" == Andrew Eskilsson <mpt95aes_at_pt.hk-r.se> writes:
AE> I have one of these windows95 enhanced keyboards, and would
AE> like to utilize the three extra buttons. xev gives me L-meta,
AE> R-meta and menu. How do I add these extra modifiers to fvwm,
AE> so I can bind a function to them?
I have a Microsoft Natural Keyboard on both my SparcStation and
Solaris x86 systems. Using xmodmap, I map CapsLock->Control_L and
Control_L->CapsLock. Then I map Alt_L->Meta_L and Alt_R->Meta_R,
setting the mod 1 bit on both.
Finally, I map Control_R->Hyper_R and set mod 5. This lets me reserve
the right control key for fvwm only chords without conflicting my
existing application (Emacs and Grail mostly) chord combinations.
This works great, and I include my xmodmap file below (although your
keycodes may differ).
Once downside. ON the SparcSTation, neither the left and right
Windows keys, nor the Menu key generate keysyms so they are basically
non-existant to X (anybody know a way to change that?). What's odd is
that the same keyboard on my x86 system (an Intel based P133 runnning
Solaris 2.5), those keys *do* generate keysyms!
-Barry
-------------------- snip snip --------------------
! -*- xrdb -*-
!
! This is an `xmodmap' input file for the Microsoft Natural Keyboard on a
! Sparc Station 5, running through the Sun Interface Converter.
!
! Highly hacked from the pc keyboard setting.
!
! This file presupposes that the keyboard is in the default state, and
! may malfunction if it is not.
!
! CapsLock => Control_L (w/ ModControl)
! Left Ctrl => CapsLock (w/ ModLock)
! Left Alt => Meta_L (w/ Mod1)
! Right Alt => Meta_R (w/ Mod1)
! Right Ctrl => Hyper_R (w/ Mod5)
remove Lock = Caps_Lock
remove Control = Control_L
remove Mod1 = Meta_L Meta_R
remove Mod2 = Mode_switch
remove Mod4 = Alt_L
keysym Control_L = Caps_Lock
keysym Caps_Lock = Control_L
keysym Meta_R = Hyper_R
keysym Mode_switch = Alt_R
add Lock = Caps_Lock
add Control = Control_L
add Mod1 = Alt_R Alt_L
add Mod5 = Hyper_R
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Tue May 07 1996 - 10:24:09 BST