summaryrefslogtreecommitdiff
path: root/bat
diff options
context:
space:
mode:
authorTslil Clingman <tslil.clingman@gmail.com>2015-06-09 17:22:13 +0200
committerTslil Clingman <tslil.clingman@gmail.com>2015-06-09 17:22:13 +0200
commit7f55198d9c0a2f8b6a61d8c596c89e502f491fe1 (patch)
tree8d88c2e1341daff522b2369c1bf02e0dd68f40ef /bat
parent68cc45a8ed9dbdf461b055bffbf06681b50d18bd (diff)
Battery script and wls tweak
Diffstat (limited to 'bat')
-rwxr-xr-xbat6
1 files changed, 6 insertions, 0 deletions
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;