diff options
author | Justine Smithies <justine@smithies.me.uk> | 2024-12-23 22:13:09 +0000 |
---|---|---|
committer | Justine Smithies <justine@smithies.me.uk> | 2024-12-23 22:13:09 +0000 |
commit | d8f7fa27eeefbcb409a09cb3404867b605151d8c (patch) | |
tree | 912e4ef7396ccd4460cddeb9ec9c0df5fdfb362e /.config/lf/lfrc | |
parent | fcd20f1828e9528483153c2ea5c65f62e90c9b90 (diff) |
Only run swayidle-update.sh if swayidle running.
Diffstat (limited to '.config/lf/lfrc')
-rw-r--r-- | .config/lf/lfrc | 3 |
1 files changed, 3 insertions, 0 deletions
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 & }} |