Dotfiles/.config/polybar/themes/monolit-dracula/polybar-scripts/battery-combined-tlp/battery-combined-tlp.sh

6 lines
108 B
Bash

#!/bin/sh
battery=$(sudo tlp-stat -b | grep "Charge total" | tr -d -c "[:digit:],.")
echo "# $battery %"