Global Hotkey with X11/Xlib

后端 未结 3 1695
夕颜
夕颜 2020-11-28 04:18

My goal is to have a program that sleeps in the background but can be activated by the user via some \"hotkey\". From digging around the Xlib manual and the Xlib O\'reilly m

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-28 05:01

    If you're using/targeting gtk on X11, there's a C library with a much simpler interface:

    https://github.com/engla/keybinder

    Includes Python, Lua and Vala bindings. (Also mentioned here.)

提交回复
热议问题