nix dotfiles

This commit is contained in:
itamar 2026-04-10 18:50:25 +03:00
commit 7b8005c867
Signed by: itamar
SSH key fingerprint: SHA256:Dv6UzB9hN8q8FUgMR/7X3DTFpE/vSB2m05+KNnxM4B0
27 changed files with 1728 additions and 0 deletions

14
navi/laniakea/eww/get_wifi.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
iface=$(ip link | awk '/state UP/ && !/lo/ {print $2}' | tr -d ':' | grep -v eth | head -1)
ssid=$(iwgetid "$iface" -r 2>/dev/null)
strength=$(awk "/$iface/ {print int(\$3 * 100 / 70)}" /proc/net/wireless 2>/dev/null)
if [ -z "$ssid" ]; then
echo "󰤭 disconnected"
else
if [ "$strength" -ge 75 ]; then icon="󰤨"
elif [ "$strength" -ge 50 ]; then icon="󰤥"
elif [ "$strength" -ge 25 ]; then icon="󰤢"
else icon="󰤟"
fi
echo "$icon $ssid $strength%"
fi