feat: Add wifi to status bar
This commit is contained in:
10
.config/hyprpanel/wifi.sh
Executable file
10
.config/hyprpanel/wifi.sh
Executable 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
|
||||
Reference in New Issue
Block a user