sb

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

commit 9caa72ca52ffa2f2fc2a79ebc407581285e0a541
parent 159085918d0bb604e88bc0aded3c6e159f34635e
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  7 Jul 2020 09:59:33 +0300

sb: print a newline when '-n' flag is specified.

Printing a newline ensures compatibility with lemonbar, so 'sb' can now be piped
into lemonbar

Diffstat:
Msb | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sb b/sb @@ -72,7 +72,7 @@ command -v bar >/dev/null 2>&1 || trap cleanup EXIT INT QUIT HUP if [ "$nobar" = 1 ]; then - while :; do clear; bar; sleep "${SLEEPTIME:=1}"; done + while :; do clear; bar; printf '\n'; sleep "${SLEEPTIME:=1}"; done else while :; do xsetroot -name " $(bar)"; sleep "${SLEEPTIME:=1}"; done fi