parent
31f024f5b8
commit
fe7763914e
@ -0,0 +1,4 @@
|
||||
#!/bin/sh
|
||||
|
||||
sketchybar --set "$NAME" label="$(date '+%m-%dT%H:%M')"
|
||||
|
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
# source "$HOME/.config/colors.sh" # Loads all defined colors
|
||||
|
||||
IP_ADDRESS=$(scutil --nwi | grep address | sed 's/.*://' | tr -d ' ' | head -1)
|
||||
|
||||
if [[ $IP_ADDRESS != "" ]]; then
|
||||
COLOR=$BLUE
|
||||
ICON=
|
||||
LABEL=
|
||||
else
|
||||
COLOR=$WHITE
|
||||
ICON=
|
||||
LABEL="Not Connected"
|
||||
fi
|
||||
|
||||
sketchybar --set $NAME background.color=$COLOR \
|
||||
icon=$ICON \
|
||||
label="$LABEL"
|
Loading…
Reference in new issue