From 0a6c41b39eccb8d56d2ff12aa46591ba7027c126 Mon Sep 17 00:00:00 2001 From: John Stef Date: Wed, 23 Jun 2021 16:44:23 +0300 Subject: [PATCH] fix update colorsheme on boot run wal even if there is no file as argument by looking at the true location of the bg link --- .local/bin/setbg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/setbg b/.local/bin/setbg index 8112bcda..5796bb17 100755 --- a/.local/bin/setbg +++ b/.local/bin/setbg @@ -18,7 +18,7 @@ esac # If pywal is installed, use it. command -v wal >/dev/null 2>&1 && - wal -i "$trueloc" -o "${XDG_CONFIG_HOME:-$HOME/.config}/wal/postrun" >/dev/null 2>&1 && + wal -i "$(readlink -f $bgloc)" -o "${XDG_CONFIG_HOME:-$HOME/.config}/wal/postrun" >/dev/null 2>&1 && pidof dwm >/dev/null && xdotool key super+F12 xwallpaper --zoom "$bgloc"