diff options
| author | Tslil Clingman <tslil.clingman@gmail.com> | 2015-06-09 17:22:13 +0200 |
|---|---|---|
| committer | Tslil Clingman <tslil.clingman@gmail.com> | 2015-06-09 17:22:13 +0200 |
| commit | 7f55198d9c0a2f8b6a61d8c596c89e502f491fe1 (patch) | |
| tree | 8d88c2e1341daff522b2369c1bf02e0dd68f40ef /bat | |
| parent | 68cc45a8ed9dbdf461b055bffbf06681b50d18bd (diff) | |
Battery script and wls tweak
Diffstat (limited to 'bat')
| -rwxr-xr-x | bat | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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; |
