summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-06-10 22:59:30 -0700
committerxyz <gky44px1999@gmail.com>2021-06-10 22:59:30 -0700
commitb9a0e5f23bc44d7470c822ceaafc2304cc8c2730 (patch)
tree5d37f2b870f23646fcf163dadd568ca90c274d4b /.local
parent0e5f9c63f5ce9b06140fa8cb60213ddf8b5e7412 (diff)
use if then else instead of && ||
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/set_dwm_status_bar2
1 files changed, 1 insertions, 1 deletions
diff --git a/.local/bin/set_dwm_status_bar b/.local/bin/set_dwm_status_bar
index a384e52a..0ad0b95b 100755
--- a/.local/bin/set_dwm_status_bar
+++ b/.local/bin/set_dwm_status_bar
@@ -1,7 +1,7 @@
#!/bin/sh
xsetroot -name "$(date "+%a %m/%d %H:%M") \
-| $(xset q | grep -q "Caps Lock: *on" && echo A || echo a) \
+| $(if xset q | grep -q "Caps Lock: *on"; then echo A; else echo a; fi) \
| $(cat /sys/class/net/wlp6s0/operstate) \
| $(free -h | awk '(NR==2){ print $4 }') \
| $(sed 's/000$/°C/' /sys/class/thermal/thermal_zone0/temp) \