34 lines
949 B
Bash
Executable File
34 lines
949 B
Bash
Executable File
#!/bin/sh
|
|
|
|
##:clean temp dir
|
|
#rm -Rf $HOME/.tmp/lscreen
|
|
##:make temp dir
|
|
#mkdir -p $HOME/.tmp/lscreen
|
|
|
|
##:define paths as variables
|
|
#screen=$HOME/.tmp/lscreen/screen.png
|
|
#lbg=$HOME/.tmp/lscreen/lbg.png
|
|
|
|
##:take screenshot
|
|
#grim $screen
|
|
|
|
##:stretch the screenshot to pixelate - fast
|
|
#convert $screen -scale 10% -scale 1000% $lbg
|
|
##:simple bidirectional blur - slow
|
|
##convert $screen -blur 0x8 $lbg
|
|
##:remove original screenshot
|
|
#rm $screen
|
|
|
|
##:execute lock with created background
|
|
#swaylock -f -e -i "$lbg"
|
|
|
|
revert() {
|
|
killall swayidle
|
|
}
|
|
trap revert HUP INT TERM
|
|
swayidle -w \
|
|
timeout 5 'swaymsg "output * dpms off"' \
|
|
resume 'swaymsg "output * dpms on"' &
|
|
swaylock --screenshots --clock --indicator --indicator-radius 100 --indicator-thickness 10 --effect-blur 7x5 --effect-vignette 0.4:0.4 --ring-color bb00cc --key-hl-color 880033 --line-color 00000000 --inside-color 00000088 --separator-color 00000000 --grace 2 --fade-in 0.2
|
|
revert
|