From 64afb9b840108e892cbb1c6b3d99a6c361e1e74c Mon Sep 17 00:00:00 2001 From: calmar Date: Wed, 12 Mar 2008 07:10:56 +0100 Subject: [PATCH] awesomerc.5.txt with Kai Grossjohann's improved shell-script + making the AUTHOR's section more homogeneous. + some other minor corrections Signed-off-by: Julien Danjou --- awesomerc.5.txt | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/awesomerc.5.txt b/awesomerc.5.txt index f3465b426..6c51e5249 100644 --- a/awesomerc.5.txt +++ b/awesomerc.5.txt @@ -790,11 +790,10 @@ Simple textbox example 2. Create ~/.awesome/bottom-status-bar - statusbar "bottom" { + statusbar "bottom" + { position = "bottom" - - textbox "clock" { - } + textbox "clock" { } } 3. Check the configuration file for errors @@ -807,19 +806,16 @@ Simple textbox example 4. Create ~/bin/awesome-clock - #!/bin/bash - emitClock() - { - ctime=`date '+%A %d %B %Y %H:%M:%S'`; - echo "0 widget_tell clock text ${ctime}" | awesome-client - } - while true; do - emitClock - sleep 1; - done + #!/bin/sh + while true + do + echo "0 widget_tell clock text `date`" + echo "" # a empty line flushes data inside awesome + sleep 1 + done | awesome-client Note: What we're saying is "awesome-client, tell widget 'clock' to set - it's 'text' property to '${ctime}'". + it's 'text' property to date's output". 5. Make your ~/bin/awesome-clock executable @@ -833,7 +829,7 @@ Simple textbox example 7. Restart awesome 8. If your didn't get what you were expecting, take a look at - ~/.xsession-errors + ~/.xsession-errors or the terminal where X got started. .............................................. @@ -844,10 +840,8 @@ awesome(1) awesome-client(1) AUTHORS ------- -This man page was written by Julien Danjou and Marco Candrian . - -Chris Ciulla modified and "enhanced" the -"Simple Clock" example by anonymous for the "Simple Textbox Example". +This man page was written by Julien Danjou , Marco Candrian +and Chris Ciulla (Simple textbox example). WWW ---