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