upload after that funky crash
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Get the current Wi-Fi SSID
|
||||
wifi_name=$(networksetup -listpreferredwirelessnetworks en0 | sed -n '2 p' | tr -d '\t')
|
||||
|
||||
# If the Wi-Fi name is empty, set a default value (e.g., "No Wi-Fi")
|
||||
if [ -z "$wifi_name" ]; then
|
||||
wifi_name="Offline"
|
||||
fi
|
||||
|
||||
# Set the Wi-Fi name as the label in SketchyBar
|
||||
sketchybar --set "$NAME" label="$wifi_name"
|
||||
Reference in New Issue
Block a user