diff --git a/.bin/check-battery-level b/.bin/check-battery-level new file mode 100755 index 0000000..bd968bc --- /dev/null +++ b/.bin/check-battery-level @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +capacityStatus="$(cat /sys/class/power_supply/BAT0/capacity)" + +printf "$capacityStatus%%"