main
Alpha Chen 6 months ago
parent 31f024f5b8
commit fe7763914e
No known key found for this signature in database

@ -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"

@ -66,14 +66,20 @@ sketchybar --add item front_app left \
# volume is registered. More info about the event system can be found here: # volume is registered. More info about the event system can be found here:
# https://felixkratz.github.io/SketchyBar/config/events # https://felixkratz.github.io/SketchyBar/config/events
sketchybar --add item clock right \ sketchybar --add item datetime right \
--set clock update_freq=10 icon= script="$PLUGIN_DIR/clock.sh" \ --set datetime update_freq=30 icon=􀉉 script="$PLUGIN_DIR/datetime.sh" \
--add item wifi right \
--subscribe wifi wifi_change \
--set wifi \
label.drawing=off \
update_freq=30 \
script="$PLUGIN_DIR/network.sh" \
--add item volume right \ --add item volume right \
--set volume script="$PLUGIN_DIR/volume.sh" \ --set volume script="$PLUGIN_DIR/volume.sh" \
--subscribe volume volume_change \ --subscribe volume volume_change \
--add item battery right \ --add item battery right \
--set battery update_freq=120 script="$PLUGIN_DIR/battery.sh" \ --set battery update_freq=120 script="$PLUGIN_DIR/battery.sh" \
--subscribe battery system_woke power_source_change --subscribe battery system_woke power_source_change \
##### Force all scripts to run the first time (never do this in a script) ##### ##### Force all scripts to run the first time (never do this in a script) #####
sketchybar --update sketchybar --update

1
.gitignore vendored

@ -15,6 +15,7 @@ private
!.config/nvim !.config/nvim
!.config/neovide !.config/neovide
!.config/pip !.config/pip
!.config/sketchybar
!.config/starship.toml !.config/starship.toml
!.config/tridactyl !.config/tridactyl
!.config/wezterm !.config/wezterm

Loading…
Cancel
Save