aboutsummaryrefslogtreecommitdiff
path: root/components/scripts/FvwmScript-Clock
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2015-06-02 16:16:36 +0100
committerdakkar <dakkar@thenautilus.net>2015-06-02 16:16:36 +0100
commit5fee59e19e46ccee891c96e8177afb7d4c400e57 (patch)
tree5b7bf522a8f77f302bdf6c7c0c98e827605440a2 /components/scripts/FvwmScript-Clock
parentshift-FF for private window (diff)
downloadfvwm-crystal-5fee59e19e46ccee891c96e8177afb7d4c400e57.tar.gz
fvwm-crystal-5fee59e19e46ccee891c96e8177afb7d4c400e57.tar.bz2
fvwm-crystal-5fee59e19e46ccee891c96e8177afb7d4c400e57.zip
update to fvwm-crystal 3.2.3
This update is big: upstream has simplified and refactored everything, so I had to move stuff around a lot. I now rely much more on the overlay system, instead of adding custom files all over the place.
Diffstat (limited to 'components/scripts/FvwmScript-Clock')
-rwxr-xr-xcomponents/scripts/FvwmScript-Clock38
1 files changed, 38 insertions, 0 deletions
diff --git a/components/scripts/FvwmScript-Clock b/components/scripts/FvwmScript-Clock
new file mode 100755
index 0000000..a298848
--- /dev/null
+++ b/components/scripts/FvwmScript-Clock
@@ -0,0 +1,38 @@
+WindowTitle {FvwmScript-Clock}
+WindowSize 165 20
+Font "xft:Tahoma:pixelsize=12:Bold"
+Colorset 1
+
+Init
+ Begin
+
+ Set $tmp = (GetOutput {exec date "+%Y-%m-%d %a %H:%M"} 1 -1)
+
+ ChangeTitle 1 $tmp
+End
+
+PeriodicTasks
+ Begin
+ If (RemainderOfDiv (GetTime) 60)==0 Then
+ Begin
+
+ Set $tmp = (GetOutput {exec date "+%Y-%m-%d %a %H:%M"} 1 -1)
+
+ ChangeTitle 1 $tmp
+ End
+End
+
+Widget 1
+Property
+ Position 0 -3
+ Size 165 20
+ Type ItemDraw
+ Flags NoReliefString
+ Title {}
+ Colorset 1
+Main
+ Case message of
+ SingleClic :
+ Begin
+ End
+End