From 8f4a530917d1fc20d72cf7364ebd0da8ea42f75b Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Mon, 2 Nov 2020 21:46:53 +0800 Subject: [PATCH] [feature] add dryrun option --- suckless/config/dwm/statusbar | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/suckless/config/dwm/statusbar b/suckless/config/dwm/statusbar index cb18ffa..35587a4 100755 --- a/suckless/config/dwm/statusbar +++ b/suckless/config/dwm/statusbar @@ -120,9 +120,15 @@ restart() { $FP loop & } -if [ "$1" = "loop" ]; then - start -else - restart -fi +case "$1" in + loop) + start + ;; + dryrun) + statusbar + ;; + *) + restart + ;; +esac