user/eww-wayland: more widgets!!

includes widgets for bluetooth, wifi, and battery

also sets a margin for the title widget
This commit is contained in:
LavaDesu 2025-03-15 22:37:47 +11:00
parent 91a993a8f7
commit 70caf4cd4b
Signed by: cilly
GPG key ID: 6500251E087653C9
3 changed files with 127 additions and 8 deletions

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
init=$(nmcli -t -f name,device connection show --active | grep wlp1s0 | cut -d\: -f1)
if [[ -z $init ]]; then
echo Disconnected
else
echo $init
fi
nmcli monitor | while read -r line ; do
if [[ $line == *"is now the primary connection" ]]; then
conn=$(echo $line | cut -d\' -f2)
echo $conn
fi
if [[ $line == "There's no primary connection" ]]; then
echo Disconnected
fi
done