On 17/08/2014 12:11, Thomas Adam wrote:
On Sun, Aug 17, 2014 at 12:04:52PM +0100, Jamie Griffin wrote:
Yeah that's it. The other thing I just thought of, is as I only want the
current day number and month, I don't need the text to be updated during the
existence of the fvwmbuttons dock; so, when it starts, the command in the
function is run to get the day/month and set in the button so i'm assuming
that wouldn't exhaust piperead so much. Do you think, then, using piperead
might be better?
Seems somewhat pointless to me, but if that's what you want to do, then
yes, PipeRead would suffice there. Be aware that if you're still awake
past midnight and fvwm is still running, don't rely on your calendar
thing to accurately reflect the date or time. ;)
You do appreciate that projects like fvwm-themes already predefine
fvwmscript instances of a calendar, etc.? Have you considered just
using one of those? Hence:
https://raw.githubusercontent.com/ThomasAdam/fvwm-themes/master/scripts/FvwmApplet-DayClock
https://raw.githubusercontent.com/ThomasAdam/fvwm-themes/master/scripts/FvwmApplet-DayClock
-- Thomas Adam
It would make sense to you if you saw my dock but yes, I can see how it
would seem pointless :-)
I'm going to bind a mouse click action to the same button to open an
actual calendar which will make it better. It's like the CDE panel where
its calendar button shows the day/month and also opens the Dtcalendar
program.
The fvwm-themes script does seem like a good idea, i'll have a go at
that too.