diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-08-23 12:42:37 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-08-23 12:42:37 +0900 |
| commit | 07d294425a98ee5d1e22d03e2b24ae2c76e487c0 (patch) | |
| tree | a6818f0d64438c5fdb88b00a35d944f80c056213 /mac/.config/sketchybar.mon/items/weather.sh | |
| parent | 6fc28cdb3529ca8ee864cb5c41674cb0a4af72a1 (diff) | |
updates
Diffstat (limited to 'mac/.config/sketchybar.mon/items/weather.sh')
| -rwxr-xr-x | mac/.config/sketchybar.mon/items/weather.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mac/.config/sketchybar.mon/items/weather.sh b/mac/.config/sketchybar.mon/items/weather.sh new file mode 100755 index 0000000..287354d --- /dev/null +++ b/mac/.config/sketchybar.mon/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 |
