From 60a5e909d480f5a69521401f4d151331dc4ba33f Mon Sep 17 00:00:00 2001 From: A Farzat Date: Tue, 5 Nov 2024 15:06:59 +0900 Subject: Only apply wal colours if files exist --- halfway/general.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'halfway/general.zsh') diff --git a/halfway/general.zsh b/halfway/general.zsh index 909c13f..6b81fb9 100644 --- a/halfway/general.zsh +++ b/halfway/general.zsh @@ -1,9 +1,9 @@ # Run the sequences in the current terminal to apply the theme. # The first is synchronous, the second is asynchronous. -cat ~/.cache/wal/sequences; +[ -f "$XDG_CACHE_HOME/wal/sequences" ] && cat "$XDG_CACHE_HOME/wal/sequences" # (cat ~/.cache/wal/sequences &); # To add support for TTYs this line can be optionally added. -source ~/.cache/wal/colors-tty.sh +[ -f "$XDG_CACHE_HOME/wal/colors-tty.sh" ] && source "$XDG_CACHE_HOME/wal/colors-tty.sh" # Attempts to restore the cursor colour - harmless, usually doesn't work # but sometimes it is actually the only thing that works. printf '%b' '\e]12' -- cgit v1.2.3-70-g09d2