blob: 1a27fd5c8b2a47af35bec257cd3a7cecb8a9fa3f (
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/bash
POPUP_CLICK_SCRIPT="sketchybar --set \$NAME popup.drawing=toggle"
github_bell=(
padding_right=-5
update_freq=180
icon=$BELL
icon.font="$FONT:Bold:15.0"
icon.color=$BLUE
label=$LOADING
label.highlight_color=$BLUE
popup.align=right
script="$PLUGIN_DIR/github.sh"
click_script="$POPUP_CLICK_SCRIPT"
)
github_template=(
drawing=off
background.corner_radius=12
padding_left=7
padding_right=7
icon.background.height=2
icon.background.y_offset=-12
)
sketchybar --add event github.update \
--add item github.bell right \
--set github.bell "${github_bell[@]}" \
--subscribe github.bell mouse.entered \
mouse.exited \
mouse.exited.global \
system_woke \
github.update \
\
--add item github.template popup.github.bell \
--set github.template "${github_template[@]}"
|