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 <julien@danjou.info>
This commit is contained in:
parent
0cd969bfb9
commit
64afb9b840
|
@ -790,11 +790,10 @@ Simple textbox example
|
||||||
|
|
||||||
2. Create ~/.awesome/bottom-status-bar
|
2. Create ~/.awesome/bottom-status-bar
|
||||||
|
|
||||||
statusbar "bottom" {
|
statusbar "bottom"
|
||||||
|
{
|
||||||
position = "bottom"
|
position = "bottom"
|
||||||
|
textbox "clock" { }
|
||||||
textbox "clock" {
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
3. Check the configuration file for errors
|
3. Check the configuration file for errors
|
||||||
|
@ -807,19 +806,16 @@ Simple textbox example
|
||||||
|
|
||||||
4. Create ~/bin/awesome-clock
|
4. Create ~/bin/awesome-clock
|
||||||
|
|
||||||
#!/bin/bash
|
#!/bin/sh
|
||||||
emitClock()
|
while true
|
||||||
{
|
do
|
||||||
ctime=`date '+%A %d %B %Y %H:%M:%S'`;
|
echo "0 widget_tell clock text `date`"
|
||||||
echo "0 widget_tell clock text ${ctime}" | awesome-client
|
echo "" # a empty line flushes data inside awesome
|
||||||
}
|
sleep 1
|
||||||
while true; do
|
done | awesome-client
|
||||||
emitClock
|
|
||||||
sleep 1;
|
|
||||||
done
|
|
||||||
|
|
||||||
Note: What we're saying is "awesome-client, tell widget 'clock' to set
|
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
|
5. Make your ~/bin/awesome-clock executable
|
||||||
|
|
||||||
|
@ -833,7 +829,7 @@ Simple textbox example
|
||||||
7. Restart awesome
|
7. Restart awesome
|
||||||
|
|
||||||
8. If your didn't get what you were expecting, take a look at
|
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
|
AUTHORS
|
||||||
-------
|
-------
|
||||||
This man page was written by Julien Danjou <julien@danjou.info> and Marco Candrian <mac@calmar.ws>.
|
This man page was written by Julien Danjou <julien@danjou.info>, Marco Candrian <mac@calmar.ws>
|
||||||
|
and Chris Ciulla <chris.ciulla at gmail.com> (Simple textbox example).
|
||||||
Chris Ciulla <chris dot ciulla at gmail dot com> modified and "enhanced" the
|
|
||||||
"Simple Clock" example by anonymous for the "Simple Textbox Example".
|
|
||||||
|
|
||||||
WWW
|
WWW
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue