diff options
author | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2025-01-19 16:00:37 +0300 |
---|---|---|
committer | Yaroslav de la Peña Smirnov <yps@yaroslavps.com> | 2025-01-19 16:00:37 +0300 |
commit | 1a908338bf11789f8a5e6ab1f3e00a584afecf68 (patch) | |
tree | c3bdf27783e2683f708e3cbb359e4f3999cf520f | |
parent | 8003d445c2fdba680aac7d927ea72195cb080f62 (diff) | |
download | swayrice-1a908338bf11789f8a5e6ab1f3e00a584afecf68.tar.gz swayrice-1a908338bf11789f8a5e6ab1f3e00a584afecf68.zip |
lock: aesthetic improvements
* Use niri's new screen transition effect, to avoid flickering.
* Use blurred-out wallpaper instead of blurred out screenshot.
-rw-r--r-- | dotfiles/.config/swaylock/config | 6 | ||||
-rwxr-xr-x | dotfiles/.local/bin/lock-color | 1 |
2 files changed, 4 insertions, 3 deletions
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' & |