diff options
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{-})" |