forked from liuxueyang/fvwm-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFvwmScript-Clock
54 lines (48 loc) · 843 Bytes
/
FvwmScript-Clock
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
WindowTitle {Clock}
WindowSize 120 35
Font "xft:Sans:style=Bold:size=8"
Init
Begin
Set $Time = (GetOutput {exec date "+%H:%M:%S"} 1 -1)
Set $Date = (GetOutput {exec date "+%F"} 1 -1)
ChangeTitle 1 $Time
ChangeTitle 2 $Date
End
PeriodicTasks
Begin
If (RemainderOfDiv (GetTime) 1)==0 Then
Begin
Set $Time = (GetOutput {exec date "+%H:%M:%S"} 1 -1)
ChangeTitle 1 $Time
Set $Date = (GetOutput {exec date "+%F"} 1 -1)
ChangeTitle 2 $Date
End
End
Widget 1
Property
Position 0 0
Size 120 20
Font "xft:Sans:style=Bold:size=9"
Type ItemDraw
Flags NoReliefString
Title {}
Main
Case message of
SingleClic :
Begin
End
End
Widget 2
Property
Position 0 20
Size 120 15
Font "xft:Sans:style=Bold:size=7"
Type ItemDraw
Flags NoReliefString
Title {}
Main
Case message of
SingleClic :
Begin
End
End