diff options
Diffstat (limited to 'accounts')
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/LockSurface.qml | 6 | ||||
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | 1 | ||||
-rw-r--r-- | accounts/gkleen@sif/shell/quickshell/WallpaperBackground.qml | 6 |
3 files changed, 11 insertions, 2 deletions
diff --git a/accounts/gkleen@sif/shell/quickshell/LockSurface.qml b/accounts/gkleen@sif/shell/quickshell/LockSurface.qml index 18698725..f4f8f0cd 100644 --- a/accounts/gkleen@sif/shell/quickshell/LockSurface.qml +++ b/accounts/gkleen@sif/shell/quickshell/LockSurface.qml | |||
@@ -110,7 +110,11 @@ Item { | |||
110 | NumberAnimation { | 110 | NumberAnimation { |
111 | target: imageEffect | 111 | target: imageEffect |
112 | properties: "opacity" | 112 | properties: "opacity" |
113 | duration: 5000 | 113 | duration: { |
114 | if (img === one && two.source == "" || img === two && one.source == "") | ||
115 | return 0; | ||
116 | return 5000; | ||
117 | } | ||
114 | easing.type: Easing.OutCubic | 118 | easing.type: Easing.OutCubic |
115 | } | 119 | } |
116 | ScriptAction { | 120 | ScriptAction { |
diff --git a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml index ac2e38f8..456baa98 100644 --- a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml +++ b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | |||
@@ -83,6 +83,7 @@ Scope { | |||
83 | pam.abort(); | 83 | pam.abort(); |
84 | 84 | ||
85 | if (locked) { | 85 | if (locked) { |
86 | NiriService.sendCommand({ "Action": { "PowerOffMonitors": {} } }); | ||
86 | Custom.KeePassXC.lockAllDatabases(); | 87 | Custom.KeePassXC.lockAllDatabases(); |
87 | Array.from(mprisProxy.players).forEach(player => { | 88 | Array.from(mprisProxy.players).forEach(player => { |
88 | if (player.canPause && player.isPlaying) | 89 | if (player.canPause && player.isPlaying) |
diff --git a/accounts/gkleen@sif/shell/quickshell/WallpaperBackground.qml b/accounts/gkleen@sif/shell/quickshell/WallpaperBackground.qml index de31915f..4f85a900 100644 --- a/accounts/gkleen@sif/shell/quickshell/WallpaperBackground.qml +++ b/accounts/gkleen@sif/shell/quickshell/WallpaperBackground.qml | |||
@@ -73,7 +73,11 @@ Item { | |||
73 | NumberAnimation { | 73 | NumberAnimation { |
74 | target: img | 74 | target: img |
75 | properties: "opacity" | 75 | properties: "opacity" |
76 | duration: 5000 | 76 | duration: { |
77 | if (img === one && two.source == "" || img === two && one.source == "") | ||
78 | return 0; | ||
79 | return 5000; | ||
80 | } | ||
77 | easing.type: Easing.OutCubic | 81 | easing.type: Easing.OutCubic |
78 | } | 82 | } |
79 | ScriptAction { | 83 | ScriptAction { |