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/datetime.sh | |
| parent | 6fc28cdb3529ca8ee864cb5c41674cb0a4af72a1 (diff) | |
updates
Diffstat (limited to 'mac/.config/sketchybar.mon/items/datetime.sh')
| -rwxr-xr-x | mac/.config/sketchybar.mon/items/datetime.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/mac/.config/sketchybar.mon/items/datetime.sh b/mac/.config/sketchybar.mon/items/datetime.sh new file mode 100755 index 0000000..4160a37 --- /dev/null +++ b/mac/.config/sketchybar.mon/items/datetime.sh @@ -0,0 +1,37 @@ +#!/bin/env/bash + +sketchybar \ + --add item date right \ + --set date update_freq=60 \ + label.font="$FONT:Semibold:10" \ + align=right \ + icon.drawing=off \ + label.padding_right=4 \ + \ + width=0 \ + script='sketchybar --set $NAME label="$(date "+%a, %b %d")"' \ + click_script="open -a Calendar.app" \ + --subscribe date system_woke \ + mouse.entered \ + mouse.exited \ + mouse.exited.global \ + --add item date.details popup.date \ + --set date.details "${menu_item_defaults[@]}" \ + --add item clock right \ + --set clock update_freq=10 \ + \ + icon.drawing=off \ + label.font="$FONT:Bold:11" \ + align=right \ + label.padding_right=4 \ + popup.align=right \ + "${menu_defaults[@]}" \ + script="$PLUGIN_DIR/nextevent.sh" \ + click_script="sketchybar --set clock popup.drawing=toggle; open -a Calendar.app" \ + --subscribe clock system_woke \ + mouse.entered \ + mouse.exited \ + mouse.exited.global \ + --add item clock.details popup.clock \ + --set clock.details "${menu_item_defaults[@]}" icon.drawing=off label.padding_left=0 # y_offset=3 \ +# y_offset=-6 \ |
