dotfiles/bin/battery-level.sh

5 lines
94 B
Bash
Executable File

#!/bin/sh
upower -i $(upower -e | grep BAT) | grep -E "state|to\ full|to\ empty|percentage"