Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想为我在 Gnome 中运行的 Python 应用程序分配一个全局热键。我怎么做?我只能找到两年前的帖子说,好吧,几乎什么都没有:-)
有 python-keybinder 是相同的代码,但独立打包。现在也可以在 debian 和 ubuntu 存储库中使用。
https://github.com/engla/keybinder
查看 Deskbar 源代码 - 他们这样做;afaik,他们调用了一个与 X11 交互的 C 库来完成这项工作