WindowTitle {clock}
WindowSize 40 18
Font "Shadow=0 se:xft:HandelGothic BT:encoding=iso10646-1:size=7"
Colorset 90
Init
Begin
Set $display= time
Set $tmp = (GetOutput {exec date "+%R"} 1 -1)
ChangeTitle 1 $tmp
End
PeriodicTasks
Begin
If (RemainderOfDiv (GetTime) 60)==0 Then
Begin
Set $tmp = (GetOutput {exec date "+%R"} 1 -1)
ChangeFont 1 {Shadow=0 se:xft:HandelGothic BT:encoding=iso10646-1:size=7}
ChangeTitle 1 $tmp
End
End
Widget 1
Property
Position 0 0
Size 40 18
Type ItemDraw
Flags NoReliefString
Title {}
Colorset 90
Main
Case message of
SingleClic :
Begin
If $display=={time} Then
Begin
Set $display= date
ChangeFont 1 {Shadow=1 se:xft:HandelGothic BT:encoding=iso10646-1:size=7}
Set $tmp = (GetOutput {exec date "+%d/%m"} 1 -1)
End
Else
Begin
Set $display= time
ChangeFont 1 {Shadow=1 se:xft:HandelGothic BT:encoding=iso10646-1:size=7}
Set $tmp = (GetOutput {exec date "+%R"} 1 -1)
End
ChangeTitle 1 $tmp
End
End
The size of the windows is easy to answer as the size is defined as the same for both of them. With respect to why two windows instead of one, I do not have a clear answer. Nevertheless, could you check the window information of the created ‘clock’ window with, for example, FvwmIdent (or ‘xwininfo’, ‘xprop’)? Also, how do you activate the module you have defined? Is this a FvwmButtons?
Therefore:
a) Is it possible that the clock script is executed before FvwmButtons module?
b) Could you try issuing the commands through FvwmConsole to see if you get similar results.
If this is the case, we narrow the issue to the FvwmButtons swallow command.
Which is clearly wrong, since the actualname of the FvwmScript module is “clock” and NOT “Clock”. And now, after some mythical refinement which isn’t seemingly public, you now have:
With regards to your assertion of a) above, the answer is no since you’re asking it to be spawned with FvwmButtons, but c.f. the Swallow condition of “UseOld” and “SwallowNew”.
There’s nothing to narrow down.
Bark yes, but please make sure it’s up the right tree.