added niri install script

This commit is contained in:
danmac
2025-06-08 23:55:35 +09:30
parent 399f3ef876
commit a94698038c

12
niri/sway_startup Executable file
View File

@@ -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}" &