myhome/.local/bin/sb-network

5 lines
184 B
Plaintext
Raw Normal View History

#!/bin/bash
print_wifi(){
echo -e "$(cat /sys/class/net/w*/operstate | sed "s/down/❌/;s/up/📶/") $(cat /sys/class/net/e*/operstate | sed "s/down/❌/;s/up/🌐/")"
}
print_wifi