From 1a171034ae2c65e295004594234913a9ceb3fbf1 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 18 Jan 2025 22:53:17 +1100 Subject: use xdg config home --- main.fish | 2 +- util.fish | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main.fish b/main.fish index 1cfdf7c..5dcef11 100755 --- a/main.fish +++ b/main.fish @@ -7,7 +7,7 @@ cd (dirname (realpath (status filename))) || exit if test "$argv[1]" = shell # Start shell if no args if test -z "$argv[2..]" - set -q CAELESTIA_SHELL_DIR && set shell_dir $CAELESTIA_SHELL_DIR || set shell_dir ~/.config/caelestia/shell + set -q CAELESTIA_SHELL_DIR && set shell_dir $CAELESTIA_SHELL_DIR || set shell_dir $CONFIG/shell $shell_dir/run.fish else if contains 'caelestia' (astal -l) diff --git a/util.fish b/util.fish index 6633525..caae353 100644 --- a/util.fish +++ b/util.fish @@ -18,4 +18,5 @@ function error -a text return 1 end +set -q XDG_CONFIG_HOME && set CONFIG $XDG_CONFIG_HOME/caelestia || set CONFIG $HOME/.config/caelestia set -q XDG_CACHE_HOME && set CACHE $XDG_CACHE_HOME/caelestia || set CACHE $HOME/.cache/caelestia -- cgit v1.2.3-freya