diff options
Diffstat (limited to 'accounts/gkleen@sif/shell')
4 files changed, 19 insertions, 5 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 e4f8e1c9..456baa98 100644 --- a/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml +++ b/accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | |||
@@ -70,6 +70,11 @@ Scope { | |||
70 | mode: Custom.SystemdInhibitorParams.Delay | 70 | mode: Custom.SystemdInhibitorParams.Delay |
71 | } | 71 | } |
72 | 72 | ||
73 | Scope { | ||
74 | id: mprisProxy | ||
75 | property list<var> players: Mpris.players.values | ||
76 | } | ||
77 | |||
73 | WlSessionLock { | 78 | WlSessionLock { |
74 | id: lock | 79 | id: lock |
75 | 80 | ||
@@ -78,8 +83,9 @@ Scope { | |||
78 | pam.abort(); | 83 | pam.abort(); |
79 | 84 | ||
80 | if (locked) { | 85 | if (locked) { |
86 | NiriService.sendCommand({ "Action": { "PowerOffMonitors": {} } }); | ||
81 | Custom.KeePassXC.lockAllDatabases(); | 87 | Custom.KeePassXC.lockAllDatabases(); |
82 | Array.from(Mpris.players.values).forEach(player => { | 88 | Array.from(mprisProxy.players).forEach(player => { |
83 | if (player.canPause && player.isPlaying) | 89 | if (player.canPause && player.isPlaying) |
84 | player.pause(); | 90 | player.pause(); |
85 | }); | 91 | }); |
diff --git a/accounts/gkleen@sif/shell/quickshell/NiriIdle.qml b/accounts/gkleen@sif/shell/quickshell/NiriIdle.qml index faa77c3f..d65711e2 100644 --- a/accounts/gkleen@sif/shell/quickshell/NiriIdle.qml +++ b/accounts/gkleen@sif/shell/quickshell/NiriIdle.qml | |||
@@ -17,14 +17,14 @@ Scope { | |||
17 | 17 | ||
18 | onIsIdleChanged: { | 18 | onIsIdleChanged: { |
19 | if (idleMonitor540.isIdle) | 19 | if (idleMonitor540.isIdle) |
20 | NiriService.sendCommand({ "Action": "PowerOffMonitors" }); | 20 | NiriService.sendCommand({ "Action": { "PowerOffMonitors": {} } }); |
21 | } | 21 | } |
22 | } | 22 | } |
23 | Connections { | 23 | Connections { |
24 | target: Custom.Systemd | 24 | target: Custom.Systemd |
25 | function onSleep(before: bool) { | 25 | function onSleep(before: bool) { |
26 | if (!before) | 26 | if (!before) |
27 | NiriService.sendCommand({ "Action": "PowerOnMonitors" }); | 27 | NiriService.sendCommand({ "Action": { "PowerOnMonitors": {} } }); |
28 | } | 28 | } |
29 | } | 29 | } |
30 | } | 30 | } |
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 { |