sb

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

commit 8ddfb334daf59f081798652ea870aef508234d91
parent bb3c25afb7173fec55eeba0c14f7cb439ff67348
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 12 Feb 2020 15:07:44 +0300

simplify default bar

Diffstat:
Msb | 15+--------------
1 file changed, 1 insertion(+), 14 deletions(-)

diff --git a/sb b/sb @@ -48,20 +48,7 @@ if [ -z "$nobar" ]; then printf "$$\\n" > "/tmp/sb-$USER.pid" fi -if ! command -V bar >/dev/null 2>&1; then - bar() { - brightness - pulseaudio - battery - DELIMETER=";" datetime - storage - storage /home - ram - nightmode - gethostname - showmpd - } -fi +command -v bar >/dev/null 2>&1 || bar() { storage ; ram ; gethostname ; datetime ;} [ -z "$nobar" ] && while true; do xsetroot -name " $(bar)"; sleep "$SLEEPTIME"; done && exit 0 while true; do bar; sleep "$SLEEPTIME"; clear; done