From 3e90bbfaec0953f2ef74fa2827ac41678ee11dee Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 13 Aug 2009 21:37:24 +0200 Subject: importing Crystal config into git --- components/scripts/FvwmScript-Clock-dakkar | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 components/scripts/FvwmScript-Clock-dakkar (limited to 'components/scripts') diff --git a/components/scripts/FvwmScript-Clock-dakkar b/components/scripts/FvwmScript-Clock-dakkar new file mode 100755 index 0000000..a298848 --- /dev/null +++ b/components/scripts/FvwmScript-Clock-dakkar @@ -0,0 +1,38 @@ +WindowTitle {FvwmScript-Clock} +WindowSize 165 20 +Font "xft:Tahoma:pixelsize=12:Bold" +Colorset 1 + +Init + Begin + + Set $tmp = (GetOutput {exec date "+%Y-%m-%d %a %H:%M"} 1 -1) + + ChangeTitle 1 $tmp +End + +PeriodicTasks + Begin + If (RemainderOfDiv (GetTime) 60)==0 Then + Begin + + Set $tmp = (GetOutput {exec date "+%Y-%m-%d %a %H:%M"} 1 -1) + + ChangeTitle 1 $tmp + End +End + +Widget 1 +Property + Position 0 -3 + Size 165 20 + Type ItemDraw + Flags NoReliefString + Title {} + Colorset 1 +Main + Case message of + SingleClic : + Begin + End +End -- cgit v1.2.3