blob: 4160a37357cbf8c12dc6b6ca5bb8cdfcfd03c10b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 \
|