sb

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

commit 05621a5dc6030eb4296330792f708135b9935640
parent 5336cbcd750c90390b59ed4d178ef3a949ddbf64
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 12 Feb 2020 15:16:30 +0300

better readability

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

diff --git a/sb b/sb @@ -37,9 +37,8 @@ esac [ "$DELIMITER" ] || DELIMITER="|" [ "$SLEEPTIME" ] || SLEEPTIME="1" +# Load Functions for func in "$FUNCPATH/"* ; do [ -f "$func" ] && . "$func"; done -for func in "$HOME/.config/sb-func/"* ; do - [ -f "$func" ] && . "$func" ; done if [ -z "$nobar" ]; then if [ -e "/tmp/sb-$USER.pid" ] ; then [ -z "$KILLEXISTING" ] && printf "ERROR: sb is already running\\nIf you think otherwise, remove /tmp/sb-$USER.pid manually.\\n" && exit 1 @@ -47,6 +46,8 @@ if [ -z "$nobar" ]; then fi printf "$$\\n" > "/tmp/sb-$USER.pid" fi +for func in "$HOME/.config/sb-func/"* ; do [ -f "$func" ] && . "$func" ; done + command -v bar >/dev/null 2>&1 || bar() { storage ; ram ; gethostname ; datetime ;}