您的位置:首页 > 运维架构

lxde/openbox快捷键的设置

2015-09-16 00:00 465 查看
摘要: 为了减少鼠标使用率

##参考链接

http://openbox.org/wiki/Help:Bindings

http://openbox.org/wiki/Help:Actions

https://wiki.archlinux.org/index.php/Openbox

##正文

用xev抓取‘不明按键’keycode:



- keycode :121
- keyname :XF86AudioMute //我测的是组合键Fn+somekey, 笔记本触控板的键值键名与组合键一样的

配置文件路径:

~/.config/openbox/lxde-rc.xml //也许是rc.xml

参考配置

<keybind key="0x6b">    //key可赋16进值的键值或键名)
<action name="Execute">
<command>scrot '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/Pictures/shots/'</command>    //截全屏幕
</action>
</keybind>
<keybind key="C-Print">
<action name="Execute">
<command>scrot -s '%Y-%m-%d_$wx$h_scrot.png' -e 'mv $f ~/Pictures/shots/selected/'</command>    //选择截图
</action>
</keybind>
<keybind key="0x79">
<action name="Execute">
<command>amixer set Master toggle</command>    //静音开/关
</action>
</keybind>
<keybind key="0x7a">
<action name="Execute">
<command>amixer set Master 5%- unmute</command>    //每按一次音量减少5%
</action>
</keybind>
<keybind key="0x7b">
<action name="Execute">
<command>amixer set Master 5%+ unmute</command>   //+5%音量
</action>
</keybind>

<keybind key="0x9c">    //0x9c 原来是“一键拯救系统”功能键
<action name="Execute">
<command>xterm -e sh /home/kangaroo/Downloads/GAE/fq.sh</command>    //一键f墙:D
</action>
</keybind>

还有个比较有用的是Key chains,更高级点还有chrooting key chains,类似Emacs的快捷键,比如'C-x C-c''C-x u'.
鼠标的快捷功能也有很多,我就不一一列举了(市面上可编程外设都弱爆了).
这里我就没用了,具体参考:http://openbox.org/wiki/Help:Bindings#Key_chains
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: