summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-12-18 11:56:46 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-12-18 11:56:46 -0500
commit741e9298bd7b0dabeea26dfe039274afca572f6d (patch)
tree19ea50d67534354197c89a7554504083100a76b7 /.local/bin
parent29c8156e66c1c880a977c6feb36ebe1d6a54b9be (diff)
downloadeibhear-741e9298bd7b0dabeea26dfe039274afca572f6d.tar.gz
eibhear-741e9298bd7b0dabeea26dfe039274afca572f6d.tar.zst
eibhear-741e9298bd7b0dabeea26dfe039274afca572f6d.zip
battery warning fix; zsh beam simplified
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/statusbar/battery4
1 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/statusbar/battery b/.local/bin/statusbar/battery
index c484286..d0272ec 100755
--- a/.local/bin/statusbar/battery
+++ b/.local/bin/statusbar/battery
@@ -33,7 +33,7 @@ do
esac
capacity=$(cat "$battery/capacity")
# Will make a warn variable if discharging and low
- [ "$status" = "🔋" ] && [ "$capacity" -le 25 ] && local warn="❗"
+ [ "$status" = "🔋" ] && [ "$capacity" -le 25 ] && warn="❗"
# Prints the info
- printf "%s%s%d%%\n" "$status" "$warn" "$capacity"
+ printf "%s%s%d%%\n" "$status" "$warn" "$capacity"; unset warn
done && return 0