Debian Codegraph @

fvwm/components/scripts/FvwmScript-Clock-24h-small_date

raw
1 WindowTitle {FvwmScript-Clock}
2 WindowSize 114 20
3 Font "xft:Tahoma:pixelsize=12:Bold"
4 Colorset 12
5
6 Init
7 Begin
8
9 # 24-hour clock
10 Set $tmp = (GetOutput {exec date "+%a %e, %R"} 1 -1)
11 # 12-hour clock
12 # Set $tmp = (GetOutput {exec date "+%I:%M"} 1 -1)
13
14 ChangeTitle 1 $tmp
15 End
16
17 PeriodicTasks
18 Begin
19 If (RemainderOfDiv (GetTime) 60)==0 Then
20 Begin
21
22 # 24 hour clock
23 Set $tmp = (GetOutput {exec date "+%a %e, %R"} 1 -1)
24 # 12-hour clock
25 # Set $tmp = (GetOutput {exec date "+%I:%M"} 1 -1)
26
27 ChangeTitle 1 $tmp
28 End
29 End
30
31 Widget 1
32 Property
33 Position 0 -3
34 Size 114 20
35 Type ItemDraw
36 Flags NoReliefString
37 Title {}
38 Colorset 12
39 Main
40 Case message of
41 SingleClic :
42 Begin
43 End
44 End