Pal*_*tir 8 mouse kde xte key-binding xbindkeys
我正在尝试xbindkeys在 Kubuntu 中进行设置,因为我得到了一个带有一些无用按钮的新鼠标。我试图将 F5 键绑定到鼠标上的 windows-logo 按钮,我将其标识为 c:134。
不幸的是,它似乎不起作用。这是我在 .xbindkeysrc 中所做的
"xte 'key F5'"
c:134
Run Code Online (Sandbox Code Playgroud)
这不起作用。但是,如果我在终端中输入:sleep 10; xte 'key F5'并切换到另一个窗口,10 秒后 F5 键将被正确模拟(例如,它将刷新当前浏览器页面)。
这也不是密钥识别的问题。这将正确启动凯特。
"kate"
c:134
Run Code Online (Sandbox Code Playgroud)
我真的不明白,为什么xte不会模拟密钥!
有什么建议?
小智 2
"xdotool key --delay 0 --clearmodifiers F5"
c:134 + Release
Run Code Online (Sandbox Code Playgroud)
来源:http://www.ict.griffith.edu.au/anthony/info/X/event_handling.txt(搜索“生成 X 键盘事件”)