From d32c0eeeb68197ef7cd3e2e7a6b9b4f803b58a28 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?=
 <yps@yaroslavps.com>
Date: Sun, 19 Jan 2025 16:11:29 +0300
Subject: lock: add screen transition delay

---
 dotfiles/.local/bin/lock-color | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'dotfiles')

diff --git a/dotfiles/.local/bin/lock-color b/dotfiles/.local/bin/lock-color
index 6d0cb2b..ce008a4 100755
--- a/dotfiles/.local/bin/lock-color
+++ b/dotfiles/.local/bin/lock-color
@@ -8,7 +8,7 @@ if [ -n "$SWAYSOCK" ]; then
 		swayidle timeout 15 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' &
 	fi
 elif [ -n "$NIRI_SOCKET" ]; then
-	niri msg action do-screen-transition
+	niri msg action do-screen-transition -d 700
 	if [ "$1" != "screenon" ]; then
 		echo idling
 		swayidle timeout 15 'niri msg action power-off-monitors' resume 'niri msg action power-on-monitors' &
-- 
cgit v1.2.3