aboutsummaryrefslogtreecommitdiff
path: root/screen
diff options
context:
space:
mode:
authorVasil Zlatanov <vasil.zlatanov@gmail.com>2014-02-23 16:59:47 +0100
committerVasil Zlatanov <vasil.zlatanov@gmail.com>2014-02-23 16:59:47 +0100
commit4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46 (patch)
treed596ad6a67295d3f46e4ab189fd2b3539ea83c10 /screen
downloaddotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.tar.gz
dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.tar.bz2
dotfiles-4b66da7ff8060fffdeac1cc4cb27f3182b3f2d46.zip
First commit of dotfiles.
Diffstat (limited to 'screen')
-rw-r--r--screen/.batinfo.swnbin0 -> 12288 bytes
-rw-r--r--screen/.batinfo.swobin0 -> 12288 bytes
-rw-r--r--screen/.batinfo.swpbin0 -> 12288 bytes
-rwxr-xr-xscreen/batinfo13
4 files changed, 13 insertions, 0 deletions
diff --git a/screen/.batinfo.swn b/screen/.batinfo.swn
new file mode 100644
index 0000000..5ae58a4
--- /dev/null
+++ b/screen/.batinfo.swn
Binary files differ
diff --git a/screen/.batinfo.swo b/screen/.batinfo.swo
new file mode 100644
index 0000000..4e3da68
--- /dev/null
+++ b/screen/.batinfo.swo
Binary files differ
diff --git a/screen/.batinfo.swp b/screen/.batinfo.swp
new file mode 100644
index 0000000..b4fc0e2
--- /dev/null
+++ b/screen/.batinfo.swp
Binary files 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{-})"