Add blur effect to lock screen.

This commit is contained in:
Sebastian Bugge 2024-12-25 19:31:30 +01:00
parent 4af8bc8944
commit 2d07fdf98c
Signed by: kaholaz
GPG key ID: 2EFFEDEE03519691

View file

@ -1,17 +1,22 @@
#!/usr/bin/env bash
lock() {
width_height=$(xdpyinfo | awk '/dimensions/ {print $2}')
scrot - | convert - -scale 80% -blur 0x2.0 -resize "$width_height" RGB:- | i3lock --nofork --raw "$width_height":rgb --image /dev/stdin
}
case "$1" in
lock)
i3lock
lock
;;
logout)
i3-msg exit
;;
suspend)
i3lock && systemctl suspend
lock && systemctl suspend
;;
hibernate)
i3lock && systemctl hibernate
lock && systemctl hibernate
;;
reboot)
systemctl reboot