1
0
forked from extern/nix-config

bspwm: Use the previous color scheme if present

This makes it possible to keep a preferred color scheme across boots.
This commit is contained in:
Donovan Glover 2022-07-28 03:57:40 -04:00
parent 7178f19424
commit aeb87d3026
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -46,8 +46,12 @@ if hash VBoxClient-all 2>/dev/null; then
VBoxClient-all
fi
# Set the color scheme to a sane default.
wal -o ~/.config/wal/done.sh --theme base16-tomorrow-night
# Use the previous color scheme if present. Otherwise use a sane default.
if [ -e ~/.cache/wal/colors.json ]; then
wal -o ~/.config/wal/done.sh -R
else
wal -o ~/.config/wal/done.sh --theme base16-tomorrow-night
fi
# Never blank the screen (disable power saving)
xset s off -dpms