Michael Großer wrote:
> No unstabilising Waits anymore. I use the "-geometry" option now to place the
> instances onto the right coordinates. And the Schedule command
> ensures that the clocks start in the right order (the "date" overlays
> the "day of week", the "time" overlays the "date" (and not the other ways
> around)).
> 
> Thanks for the hints. Now it's time to tweak these little details.
> 
> Michael
> 
> 
> 
> P.S.
> If there were an approach to save these additional 200 or 300 milliseconds
> to get the clocks into the right order (without having to risk FVWM to
> hang using the "Wait" command), I would be glad about this.





Now, my clock is perfect. When the system is fast, the auto correction
should take effect immediately (after 10 or 100 milliseconds).
For slower systems, there is another auto correction after 1 second.
For very slow systems, there is yet another auto correction after 10 seconds:

> AddToFunc InitFunction
> + I Exec exec xclock -digital\
>                      -update 1\
>                      -strftime "%A         "\
>                      -geometry 200x34-102-0\
>                      -name "clock1"
>
> + I Exec exec xclock -digital\
>                      -update 1\
>                      -strftime "%d.%m.%Y"\
>                      -geometry 114x34-90-0\
>                      -name "clock2"
>
> + I Exec exec xclock -digital\
>                      -update 1\
>                      -strftime "%H:%M:%S Uhr"\
>                      -geometry 108x34-0-0\
>                      -name "clock3"
>
> AddToFunc StartFunction
> + I Schedule 13 Prev ("clock1") arrange_the_clock
> + I Schedule 103 Prev ("clock1") arrange_the_clock
> + I Schedule 1003 Prev ("clock1") arrange_the_clock
> + I Schedule 10003 Prev ("clock1") arrange_the_clock
>
> + I Schedule 12 Prev ("clock2") arrange_the_clock
> + I Schedule 102 Prev ("clock2") arrange_the_clock
> + I Schedule 1002 Prev ("clock2") arrange_the_clock
> + I Schedule 10002 Prev ("clock2") arrange_the_clock
>
> + I Schedule 11 Prev ("clock3") arrange_the_clock
> + I Schedule 101 Prev ("clock3") arrange_the_clock
> + I Schedule 1001 Prev ("clock3") arrange_the_clock
> + I Schedule 10001 Prev ("clock3") arrange_the_clock
>
>
>
>
>
> # The clock is supposed to get styles!
> Style clock? Sticky, NoTitle, HandleWidth 0, StaysOnBottom, WindowListSkip
>
> # bring the clock instances into the right order
> DestroyFunc arrange_the_clock
> AddToFunc arrange_the_clock
> + I Layer 0 2
> + I Lower


Reply via email to