132 lines
9.9 KiB
Bash
Executable file
132 lines
9.9 KiB
Bash
Executable file
SPOTIFY_EVENT="com.spotify.client.PlaybackStateChanged"
|
|
POPUP_SCRIPT="sketchybar -m --set spotify.anchor popup.drawing=toggle"
|
|
|
|
sketchybar --add event spotify_change $SPOTIFY_EVENT \
|
|
--add item spotify.anchor center \
|
|
--set spotify.anchor script="$PLUGIN_DIR/spotify.sh" \
|
|
click_script="$POPUP_SCRIPT" \
|
|
width=170 \
|
|
align=left \
|
|
icon.background.drawing=on \
|
|
icon.background.color=$GREEN \
|
|
icon.background.height=3 \
|
|
icon.background.corner_radius=2 \
|
|
background.padding_left=1 \
|
|
background.drawing=on \
|
|
popup.horizontal=on \
|
|
popup.align=center \
|
|
popup.height=120 \
|
|
label= \
|
|
label.font="$FONT:Regular:19.0" \
|
|
label.drawing=off \
|
|
drawing=off \
|
|
--subscribe spotify.anchor mouse.entered mouse.exited \
|
|
mouse.exited.global \
|
|
\
|
|
--add item spotify.cover popup.spotify.anchor \
|
|
--set spotify.cover script="$PLUGIN_DIR/spotify.sh" \
|
|
label.drawing=off \
|
|
icon.drawing=off \
|
|
background.padding_left=12 \
|
|
background.padding_right=10 \
|
|
background.image.scale=0.15 \
|
|
background.image.drawing=on \
|
|
background.drawing=on \
|
|
\
|
|
--add item spotify.title popup.spotify.anchor \
|
|
--set spotify.title icon.drawing=off \
|
|
background.padding_left=0 \
|
|
background.padding_right=0 \
|
|
width=0 \
|
|
label.font="$FONT:Heavy:14.0" \
|
|
y_offset=40 \
|
|
\
|
|
--add item spotify.artist popup.spotify.anchor \
|
|
--set spotify.artist icon.drawing=off \
|
|
y_offset=20 \
|
|
background.padding_left=0 \
|
|
background.padding_right=0 \
|
|
width=0 \
|
|
\
|
|
--add item spotify.album popup.spotify.anchor \
|
|
--set spotify.album icon.drawing=off \
|
|
background.padding_left=0 \
|
|
background.padding_right=0 \
|
|
y_offset=3 \
|
|
width=0 \
|
|
\
|
|
--add item spotify.shuffle popup.spotify.anchor \
|
|
--set spotify.shuffle icon= \
|
|
icon.padding_left=5 \
|
|
icon.padding_right=5 \
|
|
icon.color=$BLACK \
|
|
icon.highlight_color=$MAGENTA \
|
|
label.drawing=off \
|
|
script="$PLUGIN_DIR/spotify.sh" \
|
|
y_offset=-30 \
|
|
--subscribe spotify.shuffle mouse.clicked \
|
|
\
|
|
--add item spotify.back popup.spotify.anchor \
|
|
--set spotify.back icon= \
|
|
icon.padding_left=5 \
|
|
icon.padding_right=5 \
|
|
icon.color=$BLACK \
|
|
script="$PLUGIN_DIR/spotify.sh" \
|
|
label.drawing=off \
|
|
y_offset=-30 \
|
|
--subscribe spotify.back mouse.clicked \
|
|
\
|
|
--add item spotify.play popup.spotify.anchor \
|
|
--set spotify.play icon= \
|
|
background.height=40 \
|
|
background.corner_radius=20 \
|
|
width=40 \
|
|
align=center \
|
|
background.color=$BLACK \
|
|
background.border_color=$WHITE \
|
|
background.border_width=0 \
|
|
background.drawing=on \
|
|
icon.padding_left=4 \
|
|
icon.padding_right=5 \
|
|
icon.color=$WHITE \
|
|
updates=on \
|
|
label.drawing=off \
|
|
script="$PLUGIN_DIR/spotify.sh" \
|
|
y_offset=-30 \
|
|
--subscribe spotify.play mouse.clicked spotify_change \
|
|
\
|
|
--add item spotify.next popup.spotify.anchor \
|
|
--set spotify.next icon= \
|
|
icon.padding_left=5 \
|
|
icon.padding_right=10 \
|
|
icon.color=$BLACK \
|
|
label.drawing=off \
|
|
script="$PLUGIN_DIR/spotify.sh" \
|
|
y_offset=-30 \
|
|
--subscribe spotify.next mouse.clicked \
|
|
\
|
|
--add item spotify.repeat popup.spotify.anchor \
|
|
--set spotify.repeat icon= \
|
|
icon.highlight_color=$MAGENTA \
|
|
icon.padding_left=5 \
|
|
icon.padding_right=10 \
|
|
icon.color=$BLACK \
|
|
label.drawing=off \
|
|
script="$PLUGIN_DIR/spotify.sh" \
|
|
y_offset=-30 \
|
|
--subscribe spotify.repeat mouse.clicked \
|
|
\
|
|
--add item spotify.spacer popup.spotify.anchor \
|
|
--set spotify.spacer width=5 \
|
|
\
|
|
--add bracket spotify spotify.shuffle \
|
|
spotify.back \
|
|
spotify.play \
|
|
spotify.next \
|
|
spotify.repeat \
|
|
--set spotify background.color=$GREEN \
|
|
background.corner_radius=11 \
|
|
background.drawing=on \
|
|
y_offset=-30 \
|
|
drawing=off
|