sb

shitty bar for dwm
git clone git://git.ckyln.com/~cem/sb.git
Log | Files | Refs | README | LICENSE

commit 8870a6462df68025ef33cbec7fcf8125590d5adf
parent 9caa72ca52ffa2f2fc2a79ebc407581285e0a541
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  7 Jul 2020 10:45:53 +0300

sb: use XDG_CONFIG_HOME for configurations

Diffstat:
Msb | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sb b/sb @@ -42,11 +42,11 @@ while [ "$1" ] ; do done -[ "$noconfig" != 1 ] && [ -e "$HOME/.config/sbrc" ] && . "$HOME/.config/sbrc" +[ "$noconfig" != 1 ] && [ -e "${XDG_CONFIG_HOME:=$HOME/.config}/sbrc" ] && . "$XDG_CONFIG_HOME/sbrc" # Load Functions for func in "$FUNCPATH/"* ; do [ -f "$func" ] && . "$func"; done -for func in "$HOME/.config/sb-func/"* ; do [ -f "$func" ] && . "$func" ; done +for func in "${XDG_CONFIG_HOME:=$HOME/.config}/sb-func/"* ; do [ -f "$func" ] && . "$func" ; done # Unless running from the command line, check for # an existing instance