File: FvwmScript-Clock-24h-small_date

package info (click to toggle)
fvwm-crystal 3.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 19,748 kB
  • ctags: 793
  • sloc: sh: 2,815; cs: 880; python: 875; makefile: 212
file content (46 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (3)
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
# This script is obsolete, will be removed in FVWM-Crystal 3.0.5

WindowTitle {FvwmScript-Clock}
WindowSize  114 20
Font		"xft:Tahoma:pixelsize=12:Bold"
Colorset 1

Init
 Begin

# 24-hour clock
  Set $tmp = (GetOutput {exec date "+%a %e, %R"} 1 -1)
# 12-hour clock
#  Set $tmp = (GetOutput {exec date "+%I:%M"} 1 -1)

  ChangeTitle 1 $tmp
End

PeriodicTasks
 Begin 
  If (RemainderOfDiv (GetTime) 60)==0 Then
  Begin

# 24 hour clock
    Set $tmp = (GetOutput {exec date "+%a %e, %R"} 1 -1)
# 12-hour clock
#    Set $tmp = (GetOutput {exec date "+%I:%M"} 1 -1)

    ChangeTitle  1 $tmp
  End
End

Widget 1
Property
 Position 0 -3
 Size 114 20
 Type ItemDraw
 Flags NoReliefString
 Title {}
 Colorset 1
Main
 Case message of
  SingleClic :
  Begin
  End
End