hell n back
This commit is contained in:
parent
3ee6761b45
commit
cac7203033
45 changed files with 2988 additions and 177 deletions
12
modules/eww/scripts/wifi.sh
Executable file
12
modules/eww/scripts/wifi.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
if iwctl station wlan0 show | grep -q "connected"; then
|
||||
icon=""
|
||||
ssid=Amadeus
|
||||
status="Connected to ${ssid}"
|
||||
else
|
||||
icon="睊"
|
||||
status="offline"
|
||||
fi
|
||||
|
||||
echo "{\"icon\": \"${icon}\", \"status\": \"${status}\"}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue