Tweak lockscreen and themes

This commit is contained in:
2024-10-03 21:27:31 +02:00
parent 3527a4fd65
commit 13d1b5a116
9 changed files with 236 additions and 15 deletions

View File

@ -2,7 +2,7 @@
# configured for wayland
set LOCKPROG swaylock
set OPTIONAL_CMDS rg sed grim lockscreen-blur
set OPTIONAL_CMDS rg sed grim lockscreen-blur jq
set CONFIG "$HOME/.config/sway/swaylock.config"
set DEFAULT_ARGS --daemonize --ignore-empty-password --show-failed-attempts --color 302f3b --config $CONFIG
set BLUR_FACTOR 40
@ -29,7 +29,7 @@ switch $XDG_CURRENT_DESKTOP
case sway
set outputs (swaymsg -t get_outputs -r | rg "name" | sed 's/^.*"name": "//' | sed 's/",$//')
case niri
set outputs (niri msg outputs | rg --pcre2 -o '[^" ]+(?=")')
set outputs (niri msg --json outputs | jq -r 'keys | join("\n")')
case '*'
echo "unsupported compositor, falling back to basic mode."
$LOCKPROG $DEFAULT_ARGS