Mac Battery

v1.0.0

Check Mac laptop battery status including percentage, charging state, and time remaining. Use when user asks about battery level, power status, or how much t...

0· 228· 1 versions· 1 current· 1 all-time· Updated 20h ago· MIT-0

Install

openclaw skills install mac-battery

Mac Battery Status

Query Mac laptop battery information using the pmset command.

Command

pmset -g batt | grep -E "([0-9]+%)"

Output Format

Returns battery percentage, charging state, and time remaining:

  • Percentage: e.g., "79%"
  • Charging state: "charging", "discharging", or "charged"
  • Time remaining: e.g., "0:47 remaining" (for charging) or "2:30 remaining" (for discharging)

Example Response

🔋 79%; charging; 0:47 remaining

Respond to user with the battery info in a friendly format with emoji.

Version tags

latestvk979fbva5qyqc0g5hjaejet3a582x5ed