13 lines
410 B
Bash
Executable File
13 lines
410 B
Bash
Executable File
#!/bin/bash
|
|
|
|
background=$1
|
|
blurred_bg=/tmp/blurred_"$(basename ${background})"
|
|
|
|
echo "Setting background to ${background}"
|
|
swaybg -m fill -i "$1" &
|
|
|
|
echo "Convert ${background} to ${blurred_bg} and set swayidle"
|
|
convert ${background} -blur 0x12 ${blurred_bg}
|
|
swayidle -w timeout 601 "niri msg action power-off-monitors" timeout 600 "swaylock -f -i ${blurred_bg}" before-sleep "swaylock -f -i ${blurred_bg}" &
|
|
|