diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-12-23 21:52:36 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-12-23 21:52:36 +0000 |
commit | 0fda8e9355da73de01f9d890b0b430f0129a0923 (patch) | |
tree | 1194a466afb2d57a3be7d47562d1f658943a4e32 /.config | |
parent | 78e0b9e9d88144c7b311fc9badd5fbc6dbecc0dd (diff) |
Read users homedir .cach/wallpaper into variable wallpaper.
Diffstat (limited to '.config')
-rwxr-xr-x | .config/river/scripts/swayidle-update.sh | 3 |
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 \*" \ |