From 3283cc234a8491551a227ef9992abdbab8760299 Mon Sep 17 00:00:00 2001 From: Kumar Damani Date: Fri, 23 Oct 2020 10:54:14 -0400 Subject: using dynamic wal exec path --- Scripts/.config/Scripts/setbg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Scripts/.config/Scripts/setbg b/Scripts/.config/Scripts/setbg index 62457d6..69fa899 100755 --- a/Scripts/.config/Scripts/setbg +++ b/Scripts/.config/Scripts/setbg @@ -14,5 +14,6 @@ WALLPAPER_HOME="$HOME/.config/wall.png" [ -d "$1" ] && cp -f "$(find "$1" -name "*.jpg" -o -name "*.jpeg" -o -name "*.png" -type f | shuf -n 1)" "$WALLPAPER_HOME" && notify-send -i "$WALLPAPER_HOME" "Random Wallpaper chosen." -# If pywal is installed, use it. -/usr/local/bin/wal -c && /usr/local/bin/wal -o $HOME/.config/Scripts/done.sh -i "$WALLPAPER_HOME" +# wal is installed, use it. +#WALL_PATH=$(which wal) +$(which wal) -c && $(which wal) -o $HOME/.config/Scripts/done.sh -i "$WALLPAPER_HOME" -- cgit v1.2.3