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:
@@ -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
|
||||
|
Reference in New Issue
Block a user