#!/bin/bash # omarchy:summary=Returns the battery percentage remaining as an integer. upower -i $(upower -e | grep BAT) | awk '/percentage/ { print int($2) exit }'