From 7f55198d9c0a2f8b6a61d8c596c89e502f491fe1 Mon Sep 17 00:00:00 2001 From: Tslil Clingman Date: Tue, 9 Jun 2015 17:22:13 +0200 Subject: Battery script and wls tweak --- bat | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 bat (limited to 'bat') diff --git a/bat b/bat new file mode 100755 index 0000000..7b0e3b3 --- /dev/null +++ b/bat @@ -0,0 +1,6 @@ +#!/usr/bin/env sh + +# Quick hack to display battery levels for the laptop + +str="s/ Charging, /C/;s/ Discharging, /D/;s/ Unknown,/U/" +acpi | cut -d: -f 2- | sed "$str" | cut -d\ -f 1-2; -- cgit v1.2.3