如何让自身不支持全局快捷键的应用支持全局快捷键?
Tofloor
poster avatar
153******66
deepin
2017-02-11 17:58
Author
RT
最近在用xchat, 但是它不支持全局快捷键, 来了消息 我还需要手工去点击一下托盘上的图标. 很难受. 我不知道是否有其他方法可以做到当我按下某个组合键时. 就将xchat从托盘状态恢复出来.
Reply Favorite View the author
All Replies
avatar
wangyong
deepin
2017-02-11 18:57
#1
需要写xcb代码
Reply View the author
avatar
153******66
deepin
2017-02-12 21:34
#2

我最后用autopy 解决了 根据托盘上的图标 找到该图标的坐标 然后发送mousemove 过去 然后再将mousemove 回来. 我用xdotool 和 wmctrl 都无法解决 已经托盘之后的问题. 最小化的话 xdotool 就可以了.
Reply View the author
avatar
153******66
deepin
2017-04-19 20:50
#3
最后, hexchat 有一个参数, 指定单实例运行, 当已有实例在运行了. 再次运行hexchat 会呼出hexchat窗口,  曲线达到了 快捷键呼出hexchat窗口的目的
Reply View the author