You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
192 B

#!/bin/bash
7 months ago
IP_ADDRESS=$(scutil --nwi | grep address | sed 's/.*://' | tr -d ' ' | head -1)
if [[ $IP_ADDRESS != "" ]]; then
ICON=􀙇
else
ICON=􀙈
fi
sketchybar --set $NAME icon=$ICON