summaryrefslogtreecommitdiff
path: root/bin/statusbar
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2023-06-14 00:22:38 -0400
committerSam Nystrom <sam@samnystrom.dev>2023-06-14 00:22:38 -0400
commitf3a977ad8b4dacb1981be1761d83cae2e360def8 (patch)
tree77ada8f3df8d040e658e17dbcb29c214dcdefc90 /bin/statusbar
parent4710e816ec37dad9c5a08705dd584f65740e89b9 (diff)
bin/statusbar: update to nerd fonts v3
Diffstat (limited to 'bin/statusbar')
-rwxr-xr-xbin/statusbar10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/statusbar b/bin/statusbar
index 3eb8057..a0b61d5 100755
--- a/bin/statusbar
+++ b/bin/statusbar
@@ -17,9 +17,9 @@ volume() {
network() {
ssid=$(iwgetid -r)
if [ -n "$ssid" ]; then
- symbol="直"
+ symbol="󰖩 "
else
- symbol="睊"
+ symbol="󰖪"
fi
printf '<span foreground="#f5a97f">%s %s</span>' "$symbol" "$ssid"
}
@@ -36,14 +36,14 @@ battery() {
idx=$(((capacity - 1) / 10 + 1))
case "$status" in
"Discharging")
- symbol=$(echo "<span foreground=\"#ed8796\">󰂃</span>,,,,,,,,," |
+ symbol=$(echo '<span foreground="#ed8796">󰂃</span>,󰁻,󰁼,󰁽,󰁾,󰁿,󰂀,󰂁,󰂂,󰁹' |
awk -F, "{ print \$$idx }")
;;
"Charging")
- symbol=$(echo "         " | awk "{ print \$$idx }")
+ symbol=$(echo "󰢜 󰂆 󰂇 󰂈 󰢝 󰂉 󰢞 󰂊 󰂋 󰂅" | awk "{ print \$$idx }")
;;
"Full")
- symbol=""
+ symbol="󰂄"
;;
esac
printf '<span foreground="#a6da95">%s %d%%</span>' "$symbol" "$capacity"