# Print current battery level. function battery_level() { cat /sys/class/power_supply/BAT*/capacity }