xdotool - xdotool 中的 POS1 键的名称是什么?
问题描述
我需要 xdotool 才能按pos1,但我不知道这个键的名称。不是 pos1,POS1,Pos1,Beginning。如何找到 xdotool 使用的密钥的名称?
解决方案
执行
$ xev -event keyboard
然后只需键入您要使用的密钥。
示例输出:
Outer window is 0x4a00001, inner window is 0x4a00002
KeymapNotify event, serial 24, synthetic NO, window 0x0,
keys: 4294967230 0 0 0 16 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
KeyRelease event, serial 25, synthetic NO, window 0x4a00001,
root 0x1a1, subw 0x0, time 109192145, (501,285), root:(503,393),
state 0x0, keycode 36 (keysym 0xff0d, Return), same_screen YES,
" XLookupString gives 1 bytes: (0d) "
XFilterEvent returns: False
KeyPress event, serial 28, synthetic NO, window 0x4a00001,
root 0x1a1, subw 0x0, time 109193882, (501,285), root:(503,393),
state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 28, synthetic NO, window 0x4a00001,
root 0x1a1, subw 0x0, time 109193953, (501,285), root:(503,393),
state 0x0, keycode 110 (keysym 0xff50, Home), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
^C
有趣的部分是keycode 110 (keysym 0xff50, Home)
。所以名为Home
。
推荐阅读
- parsing - 为带括号的逻辑运算符实现上下文无关文法
- java - “变量”不能解析为变量
- c# - 检查字典字典中的内部字典是否包含值
- r - Extracting P-value column from output Anova (car package)
- python-3.x - 使用 Python 模块的 Internet 点击次数
- python - 为什么这个 SQL 查询会失败?
- python - Getting the index of a timestamp element in a pandas data frame
- python - 将 a 转换为一段时间但保持相同的属性?
- c++ - 类的位宽
- wordpress - 我刚刚安装了 Xampp 并下载了最近的 Wordpress。我尝试更改任何主题,但出现以下错误