Apple Keyboard and xmodmap -- print screen?
Bill Moseley
moseley at hank.org
Wed Mar 26 01:10:54 UTC 2008
I need help using xmodmap to enable some keys.
I'm trying out one of those newish thin Apple keyboards. Not too bad
for typing.
But, I'm missing some functionality and I'm not having much luck with
xmodmap.
First, there's no "Insert" key, which is important (there's a "fn" key
in its place). That's was easy to fix by assigning to F13 right above
fn:
xmodmap -e "keycode 182 = Insert"
But, now I'm trying to get print screen (screen shot) to work. It
works perfectly on my Dell keyboard. But, running xev and pressing
Print Screen on the Dell keyboard doesn't show a normal key press.
Instead it generates:
FocusOut event, serial 31, synthetic NO, window 0x2000001,
mode NotifyGrab, detail NotifyAncestor
FocusIn event, serial 31, synthetic NO, window 0x2000001,
mode NotifyUngrab, detail NotifyAncestor
KeymapNotify event, serial 31, synthetic NO, window 0x0,
keys: 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
FocusOut event, serial 31, synthetic NO, window 0x2000001,
mode NotifyNormal, detail NotifyNonlinear
PropertyNotify event, serial 31, synthetic NO, window 0x2000001,
atom 0x1a7 (_NET_WM_ICON_GEOMETRY), time 3902388038, state PropertyNewValue
Can anyone explain what that shows? Can I assign a key to do hat
using xmodmap?
Gutsy on my Thinkpad has volumne control keys that work great in
Gnome. But I tried this xmodmap:
xmodmap -e 'keycode 182 = XF86AudioMute'
But, that seems to have no effect (pressing F14 which generates 183)
doesn't mute. How do I get Gnome (or the volume applet) to handle
that?
Thanks,
--
Bill Moseley
moseley at hank.org
More information about the ubuntu-users
mailing list