Dotfiles V.1.1.5
Updated Neovim Plugins as well as cleaned up aerospace config and sketbar config and added fastfetch config
This commit is contained in:
21
.config/sketchybar/plugins/wifi.sh
Executable file
21
.config/sketchybar/plugins/wifi.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
if networksetup -getairportpower en0 | grep -q "On"; then
|
||||
SSID=$(ipconfig getsummary en0 | awk -F ' SSID : ' '/ SSID : / {print $2}')
|
||||
if [ -z "$SSID" ]; then
|
||||
sketchybar --set wifi icon="" \
|
||||
label="Disconnected" \
|
||||
label.color="0xffed8796" \
|
||||
icon.color="0xffed8796"
|
||||
else
|
||||
sketchybar --set wifi icon="" \
|
||||
label="$SSID" \
|
||||
label.color="0xffc6a0f6" \
|
||||
icon.color="0xffc6a0f6"
|
||||
fi
|
||||
else
|
||||
sketchybar --set wifi icon="" \
|
||||
label="Off" \
|
||||
label.color="0xffed8796" \
|
||||
icon.color="0xffed8796"
|
||||
fi
|
||||
Reference in New Issue
Block a user