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