From f016196e5d786a263c8bb6f202646ad1fe36545f Mon Sep 17 00:00:00 2001 From: Adam <24621027+adoyle0@users.noreply.github.com> Date: Sun, 18 Jun 2023 23:27:38 -0400 Subject: [PATCH] add some checks --- scripts/doorsbg | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/doorsbg b/scripts/doorsbg index d1031fa..46603db 100755 --- a/scripts/doorsbg +++ b/scripts/doorsbg @@ -1,12 +1,15 @@ #! /bin/bash -wal -i ~/Pictures/Wallpapers; +# pick a random wallpaper and save a copy +wal -i ~/Pictures/Wallpapers && +cp $(awk {print} ~/.cache/wal/wal) ~/.cache/wal/bg -cp $(awk {print} ~/.cache/wal/wal) ~/.cache/wal/bg; -pywalfox update; -pywal-discord; -beautifuldiscord --css ~/.config/BetterDiscord/themes; -wal-telegram -g; +# update themes for other stuff it it exists +[ -x "$(command -v pywalfox)" ] && pywalfox update +[ -x "$(command -v pywal-discord)" ] && pywal-discord +[ -x "$(command -v beautifuldiscord)" ] && beautifuldiscord --css ~/.config/BetterDiscord/themes +[ -x "$(command -v wal-telegram )" ] && wal-telegram -g +# set wallpaper and reset waybar swaybg -i ~/.cache/wal/bg & killall waybar && waybar &