summaryrefslogtreecommitdiff
path: root/mac/.config/sketchybar.yabai/items/weather.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.config/sketchybar.yabai/items/weather.sh')
-rwxr-xr-xmac/.config/sketchybar.yabai/items/weather.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/mac/.config/sketchybar.yabai/items/weather.sh b/mac/.config/sketchybar.yabai/items/weather.sh
new file mode 100755
index 0000000..287354d
--- /dev/null
+++ b/mac/.config/sketchybar.yabai/items/weather.sh
@@ -0,0 +1,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