[Desktop] 如何注册系统快捷键
Tofloor
poster avatar
wuyin
deepin
2022-05-26 02:47
Author

系统是否有注册全局快捷键的接口?比如通过DBUS接口

Reply Favorite View the author
All Replies
liwl
deepin
2022-05-26 03:05
#1

有的,晚一点给你找找

Reply View the author
liwl
deepin
2022-05-26 04:34
#2

我的脚本代码节选

主要通过busctl来设置全局快捷键,主要不能与系统默认冲突,冲突时设置不成功,可以先删除系统默认,再设置

image.png

image.png

Reply View the author
wuyin
deepin
2022-05-26 18:30
#3
liwl

我的脚本代码节选

主要通过busctl来设置全局快捷键,主要不能与系统默认冲突,冲突时设置不成功,可以先删除系统默认,再设置

image.png

image.png

谢谢,有能查询系统快捷键是否被占用的接口吗

Reply View the author
liwl
deepin
2022-05-26 18:44
#4
wuyin

谢谢,有能查询系统快捷键是否被占用的接口吗

用gsetting查看吧,或者控制中心看看

image.png

Reply View the author
wuyin
deepin
2022-05-26 22:10
#5
liwl

用gsetting查看吧,或者控制中心看看

image.png

好的, 谢谢

Reply View the author