laptop, large refactor and some new stuff
This commit is contained in:
parent
c7a2895e5a
commit
07941251b5
15 changed files with 307 additions and 492 deletions
16
nixos/hosts/thalassa/null/home/eww/scripts/wifi.sh
Executable file
16
nixos/hosts/thalassa/null/home/eww/scripts/wifi.sh
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
if nmcli g | rg -q "\bconnected\b"; then
|
||||
icon=""
|
||||
ssid=$(nmcli -t -f name connection show --active)
|
||||
if echo $ssid | rg -q "Wired"; then
|
||||
status="Connected via cable"
|
||||
else
|
||||
status="Connected to ${ssid}"
|
||||
fi
|
||||
else
|
||||
icon=""
|
||||
status="offline"
|
||||
fi
|
||||
|
||||
printf "{\"icon\": \"${icon}\", \"status\": \"${status}\"}"
|
Loading…
Add table
Add a link
Reference in a new issue