From da23e39c353e68fdc7c5839d78945e88352a7f92 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 12 Sep 2025 11:24:23 +0200 Subject: ... --- accounts/gkleen@sif/shell/quickshell/LockSurface.qml | 6 +++++- accounts/gkleen@sif/shell/quickshell/Lockscreen.qml | 1 + accounts/gkleen@sif/shell/quickshell/WallpaperBackground.qml | 6 +++++- 3 files changed, 11 insertions(+), 2 deletions(-) (limited to 'accounts/gkleen@sif') 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 { NumberAnimation { target: imageEffect properties: "opacity" - duration: 5000 + duration: { + if (img === one && two.source == "" || img === two && one.source == "") + return 0; + return 5000; + } easing.type: Easing.OutCubic } 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 { pam.abort(); if (locked) { + NiriService.sendCommand({ "Action": { "PowerOffMonitors": {} } }); Custom.KeePassXC.lockAllDatabases(); Array.from(mprisProxy.players).forEach(player => { 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 { NumberAnimation { target: img properties: "opacity" - duration: 5000 + duration: { + if (img === one && two.source == "" || img === two && one.source == "") + return 0; + return 5000; + } easing.type: Easing.OutCubic } ScriptAction { -- cgit v1.2.3