From 1a908338bf11789f8a5e6ab1f3e00a584afecf68 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:00:37 +0300
Subject: lock: aesthetic improvements

* Use niri's new screen transition effect, to avoid flickering.
* Use blurred-out wallpaper instead of blurred out screenshot.
---
 dotfiles/.local/bin/lock-color | 1 +
 1 file changed, 1 insertion(+)

(limited to 'dotfiles/.local/bin')

diff --git a/dotfiles/.local/bin/lock-color b/dotfiles/.local/bin/lock-color
index 23efb78..6d0cb2b 100755
--- a/dotfiles/.local/bin/lock-color
+++ b/dotfiles/.local/bin/lock-color
@@ -8,6 +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
 	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