Switch to qtile.
This commit is contained in:
parent
afdf3d4bcd
commit
e06cbc44a9
34 changed files with 34 additions and 40 deletions
10
_desktop/_scripts/sb-network
Executable file
10
_desktop/_scripts/sb-network
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
icon='\uf1eb '
|
||||
case "$(cat /sys/class/net/w*/operstate 2>/dev/null)" in
|
||||
down) printf "$icon <span background='#770000'>no wifi</span>" ;;
|
||||
up)
|
||||
[ -n "$(ip address show dev wlan0 | grep 'inet ')" ] \
|
||||
&& printf "$icon $(iw dev wlan0 info | grep 'ssid ' | cut -d' ' -f2-)" \
|
||||
|| printf "$icon <span background='#770000'>no ip</span>"
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue