#!/usr/bin/env bash
#
# Print battery percentage to stdout
set -e
if [ $(uname -s) = "Darwin" ]; then
echo "" # TODO
else # Linux
echo "$(cat /sys/class/power_supply/BAT0/capacity)"
fi