summaryrefslogtreecommitdiff
path: root/mac/.config/sketchybar.mon/sketchybar/items/battery.sh
diff options
context:
space:
mode:
Diffstat (limited to 'mac/.config/sketchybar.mon/sketchybar/items/battery.sh')
-rwxr-xr-xmac/.config/sketchybar.mon/sketchybar/items/battery.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/mac/.config/sketchybar.mon/sketchybar/items/battery.sh b/mac/.config/sketchybar.mon/sketchybar/items/battery.sh
new file mode 100755
index 0000000..7955060
--- /dev/null
+++ b/mac/.config/sketchybar.mon/sketchybar/items/battery.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+battery=(
+ script="$PLUGIN_DIR/battery.sh"
+ icon.font="$FONT:Regular:19.0"
+ padding_right=3
+ padding_left=0
+ label.drawing=off
+ update_freq=120
+ updates=on
+)
+sketchybar --add item battery right \
+ --set battery "${battery[@]}"\
+ icon.font.size=15 update_freq=120 script="$PLUGIN_DIR/battery.sh" \
+ --subscribe battery power_source_change system_woke
+