aboutsummaryrefslogtreecommitdiff
path: root/.config/river
diff options
context:
space:
mode:
Diffstat (limited to '.config/river')
-rwxr-xr-x.config/river/scripts/swayidle-update.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/.config/river/scripts/swayidle-update.sh b/.config/river/scripts/swayidle-update.sh
index 7a84607..f451b38 100755
--- a/.config/river/scripts/swayidle-update.sh
+++ b/.config/river/scripts/swayidle-update.sh
@@ -1,5 +1,6 @@
#!/bin/sh
-pkill -f swayidle
+pkill -f swayidle
+read -r wallpaper<"$HOME/.cache/wallpaper"
swayidle -w \
timeout 300 "swaylock -f -i $wallpaper" \
timeout 600 "wlopm --off \*;swaylock -F -i $wallpaper" resume "wlopm --on \*" \