Back to custom sb-battery script.
This commit is contained in:
parent
d7f736b07c
commit
417c39af19
2 changed files with 13 additions and 3 deletions
8
_desktop/_scripts/sb-network
Executable file
8
_desktop/_scripts/sb-network
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||
down) printf "no wifi" ;;
|
||||
up)
|
||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] || printf "no ip"
|
||||
# && printf "$icon $(iwgetid -r)" \
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue