fix: theme ssot
This commit is contained in:
parent
026074a7fe
commit
9717cf3948
4 changed files with 14 additions and 1 deletions
|
|
@ -49,6 +49,11 @@ fi
|
|||
[ -z "$theme" ] && exit 1
|
||||
echo "$themes" | grep -Fxq "$theme" || exit 1
|
||||
|
||||
state_dir="${XDG_STATE_HOME:-$HOME/.local/state}"
|
||||
mkdir -p "$state_dir"
|
||||
printf '%s\n' "$theme" > "$state_dir/theme"
|
||||
export THEME="$theme"
|
||||
|
||||
case "$(uname)" in
|
||||
Linux)
|
||||
case "$theme" in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue