From 4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46 Mon Sep 17 00:00:00 2001 From: Vasil Zlatanov Date: Sun, 23 Feb 2014 16:59:47 +0100 Subject: First commit of dotfiles. --- screen/.batinfo.swn | Bin 0 -> 12288 bytes screen/.batinfo.swo | Bin 0 -> 12288 bytes screen/.batinfo.swp | Bin 0 -> 12288 bytes screen/batinfo | 13 +++++++++++++ 4 files changed, 13 insertions(+) create mode 100644 screen/.batinfo.swn create mode 100644 screen/.batinfo.swo create mode 100644 screen/.batinfo.swp create mode 100755 screen/batinfo (limited to 'screen') diff --git a/screen/.batinfo.swn b/screen/.batinfo.swn new file mode 100644 index 0000000..5ae58a4 Binary files /dev/null and b/screen/.batinfo.swn differ diff --git a/screen/.batinfo.swo b/screen/.batinfo.swo new file mode 100644 index 0000000..4e3da68 Binary files /dev/null and b/screen/.batinfo.swo differ diff --git a/screen/.batinfo.swp b/screen/.batinfo.swp new file mode 100644 index 0000000..b4fc0e2 Binary files /dev/null and b/screen/.batinfo.swp differ diff --git a/screen/batinfo b/screen/batinfo new file mode 100755 index 0000000..3366c1f --- /dev/null +++ b/screen/batinfo @@ -0,0 +1,13 @@ +#!/bin/sh +#batinfo +stat=` acpi | tr -s , | cut -d -f4 ` +pct=` acpi | tr -s , | cut -d -f5 ` + +color="^E{k.}" +case $stat in + discharging) color="^E{kr}" ;; + charging) color="^E{kg}" ;; + *) color="^E{k.}" ;; +esac + +echo "$color$pct^E{-}($color$stat^E{-})" -- cgit v1.2.3-54-g00ecf