blob: aceaa3b5faf1ebcf25791f35cd56c014c73c756d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# Start mako after making sure the wallust-generated color file exists.
# mako's config uses `include=~/.cache/wallust/mako`; if that file is missing
# (e.g. on first login before wallust has run) mako would fail to start, so we
# seed a neutral default here. apply-colors.sh regenerates it and runs
# `makoctl reload` once the real palette is ready.
set -e
CACHE="${XDG_CACHE_HOME:-$HOME/.cache}/wallust/mako"
if [ ! -f "$CACHE" ]; then
mkdir -p "$(dirname "$CACHE")"
cat > "$CACHE" <<'EOF'
background-color=#1e1e1e
text-color=#e0e0e0
border-color=#3a3a3a
progress-color=over #4f4f4f
EOF
fi
exec mako "$@"
|