diff options
Diffstat (limited to 'mac/.config/sketchybar.yabai/items/weather.sh')
| -rwxr-xr-x | mac/.config/sketchybar.yabai/items/weather.sh | 23 |
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 |
