feat: Add wifi to status bar

This commit is contained in:
2026-02-16 17:21:24 +11:00
parent d2e3069d13
commit 09273a9c4d
6 changed files with 53 additions and 2 deletions

10
.config/hyprpanel/wifi.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
# Get the current Wi-Fi network name
wifi_name=$(iwgetid -r)
# Output the Wi-Fi network name, or "Disconnected" if not connected
if [ -z "$wifi_name" ]; then
echo '{"status":"Disconnected"}'
else
echo "{\"status\":\"$wifi_name\"}"
fi