From d8f7fa27eeefbcb409a09cb3404867b605151d8c Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Mon, 23 Dec 2024 22:13:09 +0000 Subject: Only run swayidle-update.sh if swayidle running. --- .config/lf/lfrc | 3 +++ 1 file changed, 3 insertions(+) (limited to '.config/lf/lfrc') diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 9a103cc..574f762 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -53,7 +53,10 @@ cmd open ${{ cmd setwallpaper ${{ echo "$f" > ~/.cache/wallpaper + if pgrep "swayidle" > /dev/null + then sh "$HOME/.config/river/scripts/swayidle-update.sh" + fi pkill swaybg > /dev/null 2>&1 nohup swaybg -m fill -i "$f" > /dev/null 2>&1 & }} -- cgit v1.2.3