wal color in zshrc

This commit is contained in:
francois
2025-12-20 11:47:25 +01:00
parent 815c030b77
commit cf21badf25
2 changed files with 9 additions and 0 deletions

View File

@@ -1,6 +1,9 @@
# some default
export EDITOR="nvim"
# Add local stuff to PATH
export PATH=$HOME/.local/bin:$PATH
# XDG dir spec
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"

View File

@@ -1,3 +1,9 @@
# color stuff
if ([ -f $XDG_CONFIG_HOME/wallpaper/current ] && [ ! -d $XDG_CACHE_HOME/wal ]) || [ -f $HOME/.reset_color ]; then
wal --cols16 dual -n -e -s -t -p "current_theme" -i .config/wallpaper/current
[ -f $HOME/.reset_color ] && rm $HOME/.reset_color
fi
# source global shell alias & variables files
[ -f "$XDG_CONFIG_HOME/shell/alias" ] && source "$XDG_CONFIG_HOME/shell/alias"
[ -f "$XDG_CONFIG_HOME/shell/vars" ] && source "$XDG_CONFIG_HOME/shell/vars"