diff --git a/niri/sway_startup b/niri/sway_startup new file mode 100755 index 0000000..5a22f03 --- /dev/null +++ b/niri/sway_startup @@ -0,0 +1,12 @@ +#!/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}" & +