summaryrefslogtreecommitdiff
path: root/mac/.config/sketchybar.mon/sketchybar/items/volume.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.config/sketchybar.mon/sketchybar/items/volume.sh')
-rwxr-xr-xmac/.config/sketchybar.mon/sketchybar/items/volume.sh43
1 files changed, 43 insertions, 0 deletions
diff --git a/mac/.config/sketchybar.mon/sketchybar/items/volume.sh b/mac/.config/sketchybar.mon/sketchybar/items/volume.sh
new file mode 100755
index 0000000..bc9466d
--- /dev/null
+++ b/mac/.config/sketchybar.mon/sketchybar/items/volume.sh
@@ -0,0 +1,43 @@
+#!/bin/sh
+
+volume_slider=(
+ script="$PLUGIN_DIR/volume.sh"
+ updates=on
+ label.drawing=off
+ icon.drawing=off
+ slider.highlight_color=$BLUE
+ slider.background.height=5
+ slider.background.corner_radius=3
+ slider.background.color=$BACKGROUND_2
+ slider.knob=􀀁
+ slider.knob.drawing=on
+)
+
+volume_icon=(
+ click_script="$PLUGIN_DIR/volume_click.sh"
+ padding_left=10
+ icon=$VOLUME_100
+ icon.width=0
+ icon.align=left
+ icon.color=$GREY
+ icon.font="$FONT:Regular:14.0"
+ label.width=25
+ label.align=left
+ label.font="$FONT:Regular:14.0"
+)
+
+status_bracket=(
+ background.color=$BACKGROUND_1
+ background.border_color=$BACKGROUND_2
+)
+
+sketchybar --add slider volume right \
+ --set volume "${volume_slider[@]}" \
+ --subscribe volume volume_change \
+ mouse.clicked \
+ --add item volume_icon right \
+ --set volume_icon "${volume_icon[@]}"
+
+sketchybar --add bracket status brew github.bell wifi volume_icon \
+ --set status "${status_bracket[@]}"
+