!2 锁屏屏蔽快捷键&&取消session打开特效

* shotcurt: disable screensaver shotcurt
This commit is contained in:
liweidong1722 2022-07-20 02:17:47 +00:00 committed by Hongfei Shang
parent c43fb69564
commit 484756c92e
4 changed files with 15 additions and 0 deletions

View File

@ -14,3 +14,4 @@ install(TARGETS kwin5_update_default_rules DESTINATION ${KDE_INSTALL_LIBDIR}/kco
install(FILES org_kde_kwin.categories DESTINATION ${KDE_INSTALL_LOGGINGCATEGORIESDIR})
install(FILES kwinrc DESTINATION /etc/xdg)
install(FILES kwin.desktop DESTINATION /etc/xdg/autostart)
install(FILES kwinrulesrc DESTINATION /etc/xdg)

10
data/kwinrulesrc Normal file
View File

@ -0,0 +1,10 @@
[1]
Description=disable_screensaver_shortcuts
disableglobalshortcuts=true
disableglobalshortcutsrule=2
wmclass=ukui-screensaver-dialog
wmclasscomplete=false
wmclassmatch=1
[General]
count=1

View File

@ -32,3 +32,4 @@ usr/share/locale/
usr/share/qlogging-categories5/
etc/xdg/kwinrc
etc/xdg/autostart/kwin.desktop
etc/xdg/kwinrulesrc

View File

@ -93,6 +93,9 @@ class ScaleEffect {
if (!ScaleEffect.isScaleWindow(window)) {
return;
}
if (window.caption == "ukui-session-tools")
return;
if (!window.visible) {
return;
}