WindowTitle {FvwmScript-Clock}
WindowSize  114 20
Font		"xft:Tahoma:pixelsize=12:Bold"
Colorset 12

Init
 Begin

# 24-hour clock
  Set $tmp = (GetOutput {exec date "+%a %e, %R"} 1 -1)
# 12-hour clock
#  Set $tmp = (GetOutput {exec date "+%I:%M"} 1 -1)

  ChangeTitle 1 $tmp
End

PeriodicTasks
 Begin 
  If (RemainderOfDiv (GetTime) 60)==0 Then
  Begin

# 24 hour clock
    Set $tmp = (GetOutput {exec date "+%a %e, %R"} 1 -1)
# 12-hour clock
#    Set $tmp = (GetOutput {exec date "+%I:%M"} 1 -1)

    ChangeTitle  1 $tmp
  End
End

Widget 1
Property
 Position 0 -3
 Size 114 20
 Type ItemDraw
 Flags NoReliefString
 Title {}
 Colorset 12
Main
 Case message of
  SingleClic :
  Begin
  End
End
