sb

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

commit 597041d8103c91ee3e10639805afdd5e433d731c
parent 7a4ef898f8531d552838a5f9805ae29199c73971
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 13 Feb 2020 01:08:42 +0300

revert to '-' for flags

Diffstat:
Msb | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sb b/sb @@ -22,10 +22,10 @@ exit 0 } while [ "$1" ] ; do case "$1" in - -d|d) noconfig=1 ; shift ;; - -v|v) printf '%s\n' "${0##*/}-$VERSION"; exit 0 ;; - -n|n) nobar=1 ; shift ;; - -x|x) ! [ -e "/tmp/sb-$USER.pid" ] && \ + -d) noconfig=1 ; shift ;; + -v) printf '%s\n' "${0##*/}-$VERSION"; exit 0 ;; + -n) nobar=1 ; shift ;; + -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 ;;