From 0fda8e9355da73de01f9d890b0b430f0129a0923 Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Mon, 23 Dec 2024 21:52:36 +0000 Subject: Read users homedir .cach/wallpaper into variable wallpaper. --- .config/river/scripts/swayidle-update.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 \*" \ -- cgit v1.2.3