分享 deepin-wine 的 快捷键 设置修正
Tofloor
poster avatar
sevenfal
deepin
2020-10-14 23:34
Author
之前15.11的时候一些deepin-wine的快捷键很好用,比如QQ、WeChat,就是 /opt/deepinwine/tools/sendkeys.sh 发送的,3个参数,第一个快捷键位,第二个应用名称,第三个组合键方式,文件头有说明:
  1. # $1 key value
  2. # $2 process name , default QQ|TIM
  3. # $3 control mode , default ctrl+alt
  4. #    0   no control key
  5. #    1   shift+
  6. #    2   ctrl+
  7. #    3   alt+
  8. #    4   ctrl+alt+
  9. #    5   ctrl+shift+
  10. #    6   alt+shift+
Copy the Code
在Deepin V20 的时候微信快捷键没用了,论坛问了下也没得到回复,今天终于没法忍了,于是找到这个文件对着看了下,才发现是因为执行发送快捷键的一行命令中,原来是 deepin-wine 现在V20之后是  deepin-wine5 ,那么问题就解决了,可以二选一(本人用的2):
1、修改 /opt/deepinwine/tools/sendkeys.sh 中的 deepin-wine 为 deepin-wine5
2、在 /usr/bin 里面复制一个 deepin-wine5 为 deepin-wine 并且编辑该文件,在 name=$(basename $0) 后添加一行 name=deepin-wine5(一开始做软连接无效还比较奇怪,非要 deepin-wine5才可以运行,打开文件才发现开头获取了文件名)

然后就可以添加快捷键了:
名称:微信
命令:/opt/deepinwine/tools/sendkeys.sh w WeChat
快捷键:Ctrl Alt W



Reply Favorite View the author
All Replies
走钢丝
deepin
2020-10-14 23:46
#1
666
Reply View the author
sgb76
deepin
2020-10-15 00:53
#2
学习了,打个卡
Reply View the author
liwl
deepin
2020-10-15 01:38
#3
论坛有的,我就回复过
Reply View the author