Doors/bin/doorsbg
2023-06-19 21:05:44 -04:00

15 lines
540 B
Bash
Executable file

#! /bin/bash
# pick a random wallpaper and save a copy
wal -i ~/Pictures/Wallpapers &&
cp $(awk {print} ~/.cache/wal/wal) ~/.cache/wal/bg
# 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 &