diff --git a/niceties/battery.uconsole b/niceties/battery.uconsole new file mode 100755 index 0000000..43e7cb6 --- /dev/null +++ b/niceties/battery.uconsole @@ -0,0 +1,6 @@ +#!/bin/sh + +upower -i /org/freedesktop/UPower/devices/DisplayDevice \ + | sed -n \ + -e '/percentage/s:^.*percentage.\ *::'\ + -e 's:%.*::p'