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

statusbar: added special case for inet

This commit is contained in:
2023-10-17 20:01:38 +02:00
parent c9eda035e8
commit 4e277ed808
2 changed files with 4 additions and 5 deletions

View File

@@ -1,9 +1,6 @@
#!/bin/sh
wifipercent=" "
if ! ls /sys/class/net/*/operstate > /dev/null 2>&1; then
if ! [[ -f /sys/class/net/w* ]]; then
wifiicon="^c#ff0000^ ^d^" && wifipercent=0
else
[ "$(cat /sys/class/net/w*/operstate)" = 'down' ] && wifiicon="^c#ff0000^ ^d^" && wifipercent=0