1
0

uconsole battery

This commit is contained in:
dtb 2024-05-06 10:58:40 -06:00
parent a0fe84e616
commit f05065c3a3

6
niceties/battery.uconsole Executable file
View File

@ -0,0 +1,6 @@
#!/bin/sh
upower -i /org/freedesktop/UPower/devices/DisplayDevice \
| sed -n \
-e '/percentage/s:^.*percentage.\ *::'\
-e 's:%.*::p'