aboutsummaryrefslogtreecommitdiff
path: root/fvwm/.fvwm/fvwmscript/FvwmScript-DateTime-Horizontal
blob: 0e1e304be255c6a415425399e58e67cd921e6df9 (plain)
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
WindowTitle {DateTime}
WindowSize  160 30
Font "xft:Iosevka Comfy:size=14"

Init
 Begin
  Set $Time = (GetOutput {exec date "+%Y-%m-%d %H:%M"} 1 -1)
  ChangeTitle 1 $Time
End

PeriodicTasks
 Begin
  If (RemainderOfDiv (GetTime) 15)==0 Then
  Begin
   Set $Time = (GetOutput {exec date "+%Y-%m-%d %H:%M"} 1 -1)
   ChangeTitle 1 $Time
  End
End

Widget 1
Property
 Position 0 -3
 Size 160 30
 Font "xft:Iosevka Comfy:size=14"
 Type ItemDraw
 Flags NoReliefString
 Title {}
Main
 Case message of
  SingleClic :
  Begin
    Do {Test (x emacs) exec emacs-launcher "calendar"
  End
End