Add blur effect to lock screen.
This commit is contained in:
parent
4af8bc8944
commit
2d07fdf98c
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue