added niri install script
This commit is contained in:
12
niri/sway_startup
Executable file
12
niri/sway_startup
Executable 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}" &
|
||||
|
||||
Reference in New Issue
Block a user