diff options
author | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2014-02-23 16:59:47 +0100 |
---|---|---|
committer | Vasil Zlatanov <vasil.zlatanov@gmail.com> | 2014-02-23 16:59:47 +0100 |
commit | 4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46 (patch) | |
tree | d596ad6a67295d3f46e4ab189fd2b3539ea83c10 /screen | |
download | dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.tar.gz dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.tar.bz2 dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.zip |
First commit of dotfiles.
Diffstat (limited to 'screen')
-rw-r--r-- | screen/.batinfo.swn | bin | 0 -> 12288 bytes | |||
-rw-r--r-- | screen/.batinfo.swo | bin | 0 -> 12288 bytes | |||
-rw-r--r-- | screen/.batinfo.swp | bin | 0 -> 12288 bytes | |||
-rwxr-xr-x | screen/batinfo | 13 |
4 files changed, 13 insertions, 0 deletions
diff --git a/screen/.batinfo.swn b/screen/.batinfo.swn Binary files differnew file mode 100644 index 0000000..5ae58a4 --- /dev/null +++ b/screen/.batinfo.swn diff --git a/screen/.batinfo.swo b/screen/.batinfo.swo Binary files differnew file mode 100644 index 0000000..4e3da68 --- /dev/null +++ b/screen/.batinfo.swo diff --git a/screen/.batinfo.swp b/screen/.batinfo.swp Binary files differnew file mode 100644 index 0000000..b4fc0e2 --- /dev/null +++ b/screen/.batinfo.swp 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{-})" |