all repos

dotfiles @ f8ffdbda2e0dbb8e3cd065e9dfca7a904eaa62d3

my dotfiles

config/polybar/scripts/battery-combined-tlp.sh (view raw)

1
2
3
4
5
#!/bin/sh

battery=$(sudo tlp-stat -b | tac | grep -m 1 "Charge" |  tr -d -c "[:digit:],.")

echo " $battery %"