bin/battery-level.sh
1 2 3 4
#!/bin/sh upower -i $(upower -e | grep BAT) | grep -E "state|to\ full|to\ empty|percentage"