From 07d294425a98ee5d1e22d03e2b24ae2c76e487c0 Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Sat, 23 Aug 2025 12:42:37 +0900 Subject: updates --- mac/.config/sketchybar.mon/items/battery.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 mac/.config/sketchybar.mon/items/battery.sh (limited to 'mac/.config/sketchybar.mon/items/battery.sh') diff --git a/mac/.config/sketchybar.mon/items/battery.sh b/mac/.config/sketchybar.mon/items/battery.sh new file mode 100755 index 0000000..758547b --- /dev/null +++ b/mac/.config/sketchybar.mon/items/battery.sh @@ -0,0 +1,23 @@ +#!/bin/env/bash + +battery=( + "${menu_defaults[@]}" + icon.font.size=16 + icon.font.style="Light" + label.drawing=off + update_freq=60 + popup.align=right + click_script="sketchybar --set battery popup.drawing=toggle" + script="$PLUGIN_DIR/battery.sh" + updates=when_shown +) + +sketchybar \ + --add item battery right \ + --set battery "${battery[@]}" \ + --subscribe battery power_source_change \ + mouse.entered \ + mouse.exited \ + mouse.exited.global \ + --add item battery.details popup.battery \ + --set battery.details "${menu_item_defaults[@]}" icon.drawing=off label.padding_left=0 -- cgit v1.2.3