From 3984000fc66671cd5d2217b3a4ae14d5ea8c5e0c Mon Sep 17 00:00:00 2001 From: Justine Smithies Date: Sat, 21 Dec 2024 17:49:48 +0000 Subject: Changed setwallaper function so it now dynamically sets the wallpaper and the swayidle background on change. --- .config/lf/lfrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.config/lf') diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 91b0398..78d0de3 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -52,7 +52,12 @@ cmd open ${{ }} cmd setwallpaper ${{ - echo "$f" > ~/.cache/wallpaper; pkill swaybg > /dev/null 2>&1; nohup swaybg -m fill -i "$f" > /dev/null 2>&1 & + echo "$f" > ~/.cache/wallpaper + wallpaper="$f" + export wallpaper + sh "$HOME/.config/river/scripts/swayidle-update.sh" + pkill swaybg > /dev/null 2>&1 + nohup swaybg -m fill -i "$f" > /dev/null 2>&1 & }} # Key Mappings -- cgit v1.2.3