summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) \