cdotfis-mac/dotfiles/.local/bin/doNotCharge.sh

5 lines
96 B
Bash
Executable File

#!/usr/bin/env bash
charging=$(cbattery status charging)
[ $? -eq 0 ] && cbattery charging off