diff options
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 \ |
