aboutsummaryrefslogtreecommitdiff
path: root/screen
diff options
context:
space:
mode:
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{-})"