周海汉 /文
2010.5.20
xf86explorer 是什么键
要想系统称心如意,快捷键重定义是必不可少的。比如锁屏,gnome缺省是ctrl+alt+l , windows下是win+l. 显然后者更为简洁。而现在大多数键盘都带有win键,所以一定要加以利用。
但是,今天配置ubuntu快捷方式时,发现“主文件夹“对应的键是xf86explorer,一时手足无措。找到一些资料,发现原来该键在普通标准美国101键盘上并不存在。是xfree 86 标准定义的一些键,部署在键盘周围。
有如下的键定义:
XF86AddFavorite
XF86ApplicationLeft
XF86ApplicationRight
XF86AudioMedia
XF86AudioMute
XF86AudioNext
XF86AudioPause
XF86AudioPlay
XF86AudioPrev
XF86AudioLowerVolume
XF86AudioRaiseVolume
XF86AudioRecord
XF86AudioRewind
XF86AudioStop
XF86Away
XF86Back
XF86Book
XF86BrightnessAdjust
XF86CD
XF86Calculator
XF86Calendar
XF86Clear
XF86ClearGrab
XF86Close
XF86Community
XF86ContrastAdjust
XF86Copy
XF86Cut
XF86DOS
XF86Display
XF86Documents
XF86Eject
XF86Excel
XF86Explorer
XF86Favorites
XF86Finance
XF86Forward
XF86Game
XF86Go
XF86History
XF86HomePage
XF86HotLinks
XF86Launch0
XF86Launch1
XF86Launch2
XF86Launch3
XF86Launch4
XF86Launch5
XF86Launch6
XF86Launch7
XF86Launch8
XF86Launch9
XF86LaunchA
XF86LaunchB
XF86LaunchC
XF86LaunchD
XF86LaunchE
XF86LaunchF
XF86LightBulb
XF86LogOff
XF86Mail
XF86MailForward
XF86Market
XF86Meeting
XF86Memo
XF86MenuKB
XF86MenuPB
XF86Messenger
XF86Music
XF86MyComputer
XF86MySites
XF86New
XF86News
XF86Next_VMode
XF86Prev_VMode
XF86OfficeHome
XF86Open
XF86OpenURL
XF86Option
XF86Paste
XF86Phone
XF86Pictures
XF86PowerDown
XF86PowerOff
XF86Next_VMode
XF86Prev_VMode
XF86Q
XF86Refresh
XF86Reload
XF86Reply
XF86RockerDown
XF86RockerEnter
XF86RockerUp
XF86RotateWindows
XF86RotationKB
XF86RotationPB
XF86Save
XF86ScreenSaver
XF86ScrollClick
XF86ScrollDown
XF86ScrollUp
XF86Search
XF86Send
XF86Shop
XF86Sleep
XF86Spell
XF86SplitScreen
XF86Standby
XF86Start
XF86Stop
XF86Support
XF86Switch_VT_1
XF86Switch_VT_10
XF86Switch_VT_11
XF86Switch_VT_12
XF86Switch_VT_2
XF86Switch_VT_3
XF86Switch_VT_4
XF86Switch_VT_5
XF86Switch_VT_6
XF86Switch_VT_7
XF86Switch_VT_8
XF86Switch_VT_9
XF86TaskPane
XF86Terminal
XF86ToDoList
XF86Tools
XF86Travel
XF86Ungrab
XF86User1KB
XF86User2KB
XF86UserPB
XF86VendorHome
XF86Video
XF86WWW
XF86WakeUp
XF86WebCam
XF86WheelButton
XF86Word
XF86XF86BackForward
XF86Xfer
XF86ZoomIn
XF86ZoomOut
XF86iTouch
可以参考德文的介绍如下:http://www.linux-user.de/ausgabe/2005/04/078-dinovo/index.html?print=y
重定义键盘
对非标准的键盘,可能会有些多余的键,能不能重定义加以利用呢?
比如我现在的方正键盘就有一个静音,一个上网和一个关机按钮。在ibm和联想笔记本上有think advantage, access ibm之类的键,能否重定义呢?
1. 发现键盘的值
ubuntu下有个小程序xev,执行后弹出一个小窗口。对小窗口按键会在控制台打印键值。
KeyRelease event, serial 36, synthetic NO, window 0x5c00001,
root 0x15a, subw 0x0, time 62744639, (76,-9), root:(195,195),
state 0x10, keycode 67 (keysym 0xffbe, F1), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
如上是我按了F1后打印的,可以看到keycode 67.
我按了上网键后,打印:
KeyRelease event, serial 36, synthetic NO, window 0x5c00001,
root 0x15a, subw 0x0, time 62835552, (138,-116), root:(257,88),
state 0x10, keycode 180 (keysym 0x1008ff18, XF86HomePage), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
可以看到键值180
2.配置绑定
将上网键配为XF86Explorer
zhouhh@zhh64:~$ vi .Xmodmap
输入
keycode 180 = XF86WWW
执行:
zhouhh@zhh64:~$ xmodmap .Xmodmap
即绑定完毕。
由于gnome缺省的浏览快捷键即是XF86WWW,此时应该按下该键即可打开firefox. 如果没有生效,可以进首选项->键盘快捷键中重设一次该键,即可生效。