sb

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

commit ceb07a1e52d9900c9d4e5e00a637ec5ca977ebd0
parent 8467edbfb205e33e85decc1fc29bc0ef95701fcb
Author: Cem Keylan <cem@ckyln.com>
Date:   Wed, 12 Feb 2020 15:06:26 +0300

make case more readable

Diffstat:
Msb | 12+++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/sb b/sb @@ -20,9 +20,15 @@ EOF exit 0 } -case "$1" in v) printf '%s\n' "${0##*/}-$VERSION"; exit 0 ;; h|help|-h|--help) usage ;; n) nobar=1 ;; x) - ! [ -e "/tmp/sb-$USER.pid" ] && printf "There is no running instance of sb\\n" && exit 1 - kill "$(cat "/tmp/sb-$USER.pid")"; rm "/tmp/sb-$USER.pid"; exit 0 ;; esac +case "$1" in + v) printf '%s\n' "${0##*/}-$VERSION"; exit 0 ;; + n) nobar=1 ;; + x) ! [ -e "/tmp/sb-$USER.pid" ] && \ + printf "There is no running instance of sb\\n" && exit 1 + kill "$(cat "/tmp/sb-$USER.pid")"; rm "/tmp/sb-$USER.pid"; exit 0 + ;; + *) usage ;; +esac [ -e "$HOME/.config/sbrc" ] && . "$HOME/.config/sbrc"