Add an initial README and some usage examples - statusbar - Shell script to set/print a status bar
(HTM) hg clone https://bitbucket.org/iamleot/statusbar
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
(DIR) changeset 7421f516dd3cc748b0e4995aa2ffd550b61b3617
(DIR) parent edd16c1b8fc9c2fa6a023511574bcad4dfaf2585
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Tue, 27 Feb 2018 20:07:53
Add an initial README and some usage examples
Diffstat:
README | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
---
diff -r edd16c1b8fc9 -r 7421f516dd3c README
--- a/README Tue Feb 27 20:07:29 2018 +0100
+++ b/README Tue Feb 27 20:07:53 2018 +0100
@@ -1,1 +1,22 @@
-TODO
+statusbar is a shell script to set/print a status bar.
+By default it set the status via xsetroot(1) and $STATUSBAR_*
+environment variables are used to configure statusbar.
+
+E.g. (for tcsh(1)):
+
+ setenv STATUSBAR_ACAD_SENSOR "acpiacad0:connected"
+ setenv STATUSBAR_BATTERY_SENSOR "acpibat0:charge"
+ setenv STATUSBAR_BATTERY_CHARGING_SENSOR "acpibat0:charging"
+ setenv STATUSBAR_CLOCK_FORMAT "+%H:%M"
+ setenv STATUSBAR_DATE_FORMAT "+%d/%m/%Y"
+ setenv STATUSBAR_MIXER_MUTE "outputs.master.mute"
+ setenv STATUSBAR_MIXER_OUTPUT "outputs.master"
+ setenv STATUSBAR_NETWORK_INTERFACES "alc0 urtwn0"
+ setenv STATUSBAR_TEMPERATURE_SENSOR "acpitz0:cpu0/cpu1/cpu2/cpu3 temperature"
+
+It can also be used to print the status bar on the standard output
+(`-o'): only one time (`-1' option):
+
+ % statusbar -1o
+ 🖧 urtwn0 | 🔈 | 🌡 54 | 🔋 76% | 🖂 1 | 📰 0 | 📅 27/02/2018 | ⏰ 20:01
+