chezmoi/dot_dotfiles/polybar/polybar-scripts/polybar-scripts/battery-combined-tlp/battery-combined-tlp.sh
2020-07-14 15:19:48 +02:00

6 lines
107 B
Bash

#!/bin/sh
battery=$(sudo tlp-stat -b | tail -2 | head -n 1 | tr -d -c "[:digit:],.")
echo "# $battery %"