
Battery Power-Ups: Enhancing SketchyBar with "is"
·1042 words·5 mins
is
battery
bash
dotfiles
cli
go
macos
sketchybar
The new “is battery” and “is known battery” subcommands can detect battery attributes with a clean, readable syntax. This post walks through practical examples of replacing complex shell commands with these new subcommands, demonstrating how they simplify a SketchyBar configuration on macOS. Learn how to check battery charge levels, charging state, and even conditionally load menu bar items based on whether your device has a battery.