Debian Codegraph @

default-config/FvwmScript-DateTime

raw
1 WindowTitle {DateTime}
2 WindowSize 120 35
3 Font "xft:Sans:style=Bold:size=10"
4
5 Init
6 Begin
7 Set $Time = (GetOutput {exec date "+%H:%M"} 1 -1)
8 Set $Date = (GetOutput {exec date "+%a %b %d"} 1 -1)
9
10 ChangeTitle 1 $Time
11 ChangeTitle 2 $Date
12 End
13
14 PeriodicTasks
15 Begin
16 If (RemainderOfDiv (GetTime) 15)==0 Then
17 Begin
18 Set $Time = (GetOutput {exec date "+%H:%M"} 1 -1)
19 Set $Date = (GetOutput {exec date "+%a %b %d"} 1 -1)
20
21 ChangeTitle 1 $Time
22 ChangeTitle 2 $Date
23 End
24 End
25
26 Widget 1
27 Property
28 Position 0 0
29 Size 120 20
30 Font "xft:Sans:style=Bold:size=11"
31 Type ItemDraw
32 Flags NoReliefString
33 Title {}
34 Main
35 Case message of
36 SingleClic :
37 Begin
38 End
39 End
40
41 Widget 2
42 Property
43 Position 0 20
44 Size 120 15
45 Font "xft:Sans:style=Bold:size=8"
46 Type ItemDraw
47 Flags NoReliefString
48 Title {}
49 Main
50 Case message of
51 SingleClic :
52 Begin
53 End
54 End