aboutsummaryrefslogtreecommitdiff
path: root/.config/lf/lfrc
diff options
context:
space:
mode:
authorJustine Smithies <justine@smithies.me.uk>2024-12-21 17:49:48 +0000
committerJustine Smithies <justine@smithies.me.uk>2024-12-21 17:49:48 +0000
commit3984000fc66671cd5d2217b3a4ae14d5ea8c5e0c (patch)
treea23fcecc3c607956666c6a5cc199c5fafe3c33e6 /.config/lf/lfrc
parent495104a10970d6958ce7552a0f27e95b3c099923 (diff)
Changed setwallaper function so it now dynamically sets the wallpaper and the swayidle background on change.
Diffstat (limited to '.config/lf/lfrc')
-rw-r--r--.config/lf/lfrc7
1 files changed, 6 insertions, 1 deletions
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