提问人:Azog 00 提问时间:10/28/2023 最后编辑:Azog 00 更新时间:10/28/2023 访问量:70
如何使用 xbindkeys 和 xdotool 创建键盘快捷键以打印字符“<”、“>”和“|”?
How do I create a keyboard shortcut to print the characters "<", ">" and "|" with xbindkeys and xdotool?
问:
我使用的是 Linux Ubuntu 版本 22.04.3,我有一个带有德语字符的美式键盘布局。一切正常,除了我无法打印以下字符:
和 .<
>
|
我需要它们进行编码,我已经尝试使用 xbindkeys 和 xdotool 来创建新的键绑定。
我在互联网上找不到更多的提示,我认为 xbindkeys 文件中的命令有问题。
我想分配给
AltGr + ,
<
AltGr + .
>
AltGr + -
|
我在 xbindkeys 和 xdotool 上尝试了以下方法:
# ALtGr + , is pressed:
"xdotool key less"
Mod5 + comma
# AltGr + . is pressed:
"xdotool key greater"
Mod5 + period
# AltGr + - is pressed:
"xdotool key bar"
Mod5 + minus
当我通过在终端中键入来启动 xbindkeys 时,当我按下这些键盘快捷键时,不会打印任何内容。xbindkeys
但是,当 xbindkeys 未运行时,当我按下键盘快捷键时,会打印以下系统标准字符:
:
:AltGr + ,
·
AltGr + .
…
AltGr + -
–
我已经试过了
killall -HUP xbindkeys
我还确保使用命令
xbindkeys --defaults >$HOME/.xbindkeysrc
并在正确的目录中编辑了该文件
对不起,我的英语不好,提前谢谢你。
答: 暂无答案
评论