dotfiles/desktop/.config/sh/env.d/mako-create-style-dir.sh
Marty Oehme c2e64a17e0
mako: Include color configuration
Include the color config for mako from ~/.local/state/mako/style instead
of hardcoding it or templating it into the config file.

This means we have to ensure the directory and file exist before running
mako which we do with an `env.d` startup script.
2025-09-24 08:24:52 +02:00

5 lines
328 B
Bash

#!/usr/bin/env sh
# Ensure the directory and file for mako style exists or it errors out on startup
[ -e "${XDG_STATE_HOME:-$HOME/.local/state}/mako" ] || mkdir -p "${XDG_STATE_HOME:-$HOME/.local/state}/mako"
[ -f "${XDG_STATE_HOME:-$HOME/.local/state}/mako/style" ] || touch "${XDG_STATE_HOME:-$HOME/.local/state}/mako/style"