bspwm-pinephone-pro/.config/polybar/batt/rk818_battery.sh

5 lines
195 B
Bash
Executable file

#!/bin/bash
PERCENTAGESTR=$(upower -i /org/freedesktop/UPower/devices/battery_rk818_battery | grep percentage)
echo "${PERCENTAGESTR//[!0-9]/}" > /home/katie/.config/polybar/batt/rk818-battery/