From f05065c3a3ee2906707a1146933d7b256385f81b Mon Sep 17 00:00:00 2001 From: DTB Date: Mon, 6 May 2024 10:58:40 -0600 Subject: [PATCH] uconsole battery --- niceties/battery.uconsole | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 niceties/battery.uconsole 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'