blob: 287354d4265195e4851bf87a2a06b27a5a66b145 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
# Load global styles, colors and icons
source "$CONFIG_DIR/globalstyles.sh"
weather=(
script="$PLUGIN_DIR/weather.sh"
"${menu_defaults[@]}"
popup.align=right
update_freq=300
updates=on
click_script="sketchybar --set $NAME popup.drawing=toggle; open -a /System/Applications/Weather.app"
--subscribe weather wifi_change
mouse.entered
mouse.exited
mouse.exited.global
)
sketchybar \
--add item weather right \
--set weather "${weather[@]}" \
--add item weather.details popup.weather \
--set weather.details "${menu_item_defaults[@]}" icon.drawing=off
|