Doors/bin/doorsbg
2023-12-30 22:54:44 -05:00

15 lines
606 B
Bash
Executable file

#! /bin/bash
# This is meant to be run by awesome with the set colors keybind,
# not by itself though it should work regardless
# Pick a random wallpaper and save a copy
# Leave these &&s to prevent a race
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