Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
分享 deepin-wine 的 快捷键 设置修正
Experiences and Insight
905
views ·
3
replies ·
To
floor
Go
sevenfal
deepin
2020-10-14 23:34
Author
之前15.11的时候一些deepin-wine的快捷键很好用,比如QQ、WeChat,就是 /opt/deepinwine/tools/sendkeys.sh 发送的,3个参数,第一个快捷键位,第二个应用名称,第三个组合键方式,文件头有说明:
# $1 key value
# $2 process name , default QQ|TIM
# $3 control mode , default ctrl+alt
# 0 no control key
# 1 shift+
# 2 ctrl+
# 3 alt+
# 4 ctrl+alt+
# 5 ctrl+shift+
# 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
Like 0
Favorite
View the author
All Replies
走钢丝
deepin
2020-10-14 23:46
#1
666
Reply
Like 0
View the author
sgb76
deepin
2020-10-15 00:53
#2
学习了,打个卡
Reply
Like 0
View the author
liwl
deepin
2020-10-15 01:38
#3
论坛有的,我就回复过
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
simple
Popular Events
More
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