From 9d11eefc53441e1f5688545b4b827f7c8dd5090d Mon Sep 17 00:00:00 2001 From: seraphim <18ycm9tx@anonaddy.me> Date: Sun, 23 Aug 2026 19:31:22 +0700 Subject: reorganize directories, so everything in .config --- .config/niri/mako-start.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 .config/niri/mako-start.sh (limited to '.config/niri/mako-start.sh') diff --git a/.config/niri/mako-start.sh b/.config/niri/mako-start.sh new file mode 100755 index 0000000..aceaa3b --- /dev/null +++ b/.config/niri/mako-start.sh @@ -0,0 +1,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 "$@" -- cgit v1.2.3