1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-10-09 19:11:15 +02:00

statusbar: matched % display between internet and volume scripts

This commit is contained in:
2023-10-14 03:17:34 +02:00
parent 23a0a8ebaf
commit 42050220b5
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env sh
#
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=""
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon=" -%"
[ ! -n "${wifiicon+var}" ] && wifiicon=$(grep "^\s*w" /proc/net/wireless | awk '{ print "", int($3 * 100 / 70) "%" }')