sb

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

commit e97f92cb4253d63b5150e92be89d4de202561fc7
parent ceb07a1e52d9900c9d4e5e00a637ec5ca977ebd0
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 12 Feb 2020 15:07:15 +0300

add 'd' flag for using the default configuration

Diffstat:
Msb | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sb b/sb @@ -9,6 +9,7 @@ usage() { ${0##*/} [options] Options: + d Use the default configuration n Print to stdout instead of the bar x Kill existing sb instance h Print this help and exit @@ -21,6 +22,7 @@ exit 0 } case "$1" in + d) noconfig=1 ;; v) printf '%s\n' "${0##*/}-$VERSION"; exit 0 ;; n) nobar=1 ;; x) ! [ -e "/tmp/sb-$USER.pid" ] && \ @@ -31,8 +33,8 @@ case "$1" in esac -[ -e "$HOME/.config/sbrc" ] && . "$HOME/.config/sbrc" [ -z "$DELIMETER" ] && DELIMETER="|" +[ "$noconfig" -eq 0 ] && [ -e "$HOME/.config/sbrc" ] && . "$HOME/.config/sbrc" [ -z "$SLEEPTIME" ] && SLEEPTIME="1" for func in "$FUNCPATH/"* ; do [ -f "$func" ] && . "$func"; done