aboutsummaryrefslogtreecommitdiff
path: root/.config/river
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-12-23 21:52:36 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-12-23 21:52:36 +0000
commit0fda8e9355da73de01f9d890b0b430f0129a0923 (patch)
tree1194a466afb2d57a3be7d47562d1f658943a4e32 /.config/river
parent78e0b9e9d88144c7b311fc9badd5fbc6dbecc0dd (diff)
Read users homedir .cach/wallpaper into variable wallpaper.
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 \*" \