From 1a908338bf11789f8a5e6ab1f3e00a584afecf68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= 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/.config/swaylock/config | 6 +++--- dotfiles/.local/bin/lock-color | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'dotfiles') diff --git a/dotfiles/.config/swaylock/config b/dotfiles/.config/swaylock/config index 2082a1f..664ea71 100644 --- a/dotfiles/.config/swaylock/config +++ b/dotfiles/.config/swaylock/config @@ -25,8 +25,8 @@ text-clear-color=#1d2021 fade-in=.3 clock indicator -screenshots +image=~/.config/wall1.png datestr=%a, %F -effect-pixelate=8 -effect-blur=12x3 +effect-blur=10x3 +show-keyboard-layout layout-bg-color=#000000bb 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