diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
| commit | c80a54e42b52ce297f0f2f71af23c562832025c7 (patch) | |
| tree | dcce8bb977a770f473325d48f6f70b21d9818a40 /mac/.config/sketchybar/items/battery.sh | |
init
Diffstat (limited to 'mac/.config/sketchybar/items/battery.sh')
| -rw-r--r-- | mac/.config/sketchybar/items/battery.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mac/.config/sketchybar/items/battery.sh b/mac/.config/sketchybar/items/battery.sh new file mode 100644 index 0000000..758547b --- /dev/null +++ b/mac/.config/sketchybar/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 |
