Code: Select all
[Rainmeter]
Author=Willow
AppVersion=1.0
Update=1000
DynamicVariables=1
[Metadata]
Name=Horizontal calendar with monthly notes
LocalFont=#CURRENTPATH#Giddyup.otf
[Variables]
fontcolor=255,255,255,255
fontcolor2=255,255,255,255
bgcolor=255,255,255,80
bgcolor2=225,225,225,50
;edit switch color
bgcolor3=255,255,255,150
barcolor=255,255,255,180
noteeditcolor=255,255,255,80
fontname=Giddyup Std
fontname2=Giddyup Std
bgWidth=14
bgX=0
Mtext="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"
GlobalY=25
NotebgY=(#GlobalY#+20)
NoteW=250
NoteH=150
[mYear]
Measure=Time
Format=%y
[mYear2]
Measure=Time
Format=%Y
[mMonthName]
Measure=Time
Format="%B"
[mMonth]
Measure=Time
Format=%m
[mDay]
Measure=Time
Format=%d
[mMonthDaysLeap]
Measure=Calc
Formula=((mMonth = 4) || (mMonth = 6) || (mMonth = 9) || (mMonth = 11)) ? 30 : ((mMonth = 2) ? ((((mYear % 4) = 0) && ((mYear % 100) > 0)) ? 29 : (((mYear % 400) = 0) ? 29 : 28)) : 31)
; ************************************
; length of leap and normal years
; ************************************
[Month_all_1]
Measure=Calc
Formula=mMonthDaysLeap
IfEqualValue=28
IfEqualAction=!execute [!RainmeterSetVariable Mtext "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"]
[Month_all_2]
Measure=Calc
Formula=mMonthDaysLeap
IfEqualValue=29
IfEqualAction=!execute [!RainmeterSetVariable Mtext "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"]
[Month_all_3]
Measure=Calc
Formula=mMonthDaysLeap
IfEqualValue=30
IfEqualAction=!execute [!RainmeterSetVariable Mtext "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"]
[Month_all_4]
Measure=Calc
Formula=mMonthDaysLeap
IfEqualValue=31
IfEqualAction=!execute [!RainmeterSetVariable Mtext "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"]
; ************************************
; change X & Width of da day indicator
; ************************************
[bgmove_1]
Measure=Calc
Formula=mDay
IfEqualValue=1
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 14][!RainmeterSetVariable bgX 0][!RainmeterSetVariable Sh1 "notebg1"][!RainmeterSetVariable Sh2 "note1"]
[bgmove_2]
Measure=Calc
Formula=mDay
IfEqualValue=2
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 17][!RainmeterSetVariable bgX 13][!RainmeterSetVariable Sh1 "notebg2"][!RainmeterSetVariable Sh2 "note2"]
[bgmove_3]
Measure=Calc
Formula=mDay
IfEqualValue=3
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 16][!RainmeterSetVariable bgX 30][!RainmeterSetVariable Sh1 "notebg3"][!RainmeterSetVariable Sh2 "note3"]
[bgmove_4]
Measure=Calc
Formula=mDay
IfEqualValue=4
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 13][!RainmeterSetVariable bgX 47][!RainmeterSetVariable Sh1 "notebg4"][!RainmeterSetVariable Sh2 "note4"]
[bgmove_5]
Measure=Calc
Formula=mDay
IfEqualValue=5
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 15][!RainmeterSetVariable bgX 61][!RainmeterSetVariable Sh1 "notebg5"][!RainmeterSetVariable Sh2 "note5"]
[bgmove_6]
Measure=Calc
Formula=mDay
IfEqualValue=6
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 14][!RainmeterSetVariable bgX 77][!RainmeterSetVariable Sh1 "notebg6"][!RainmeterSetVariable Sh2 "note6"]
[bgmove_7]
Measure=Calc
Formula=mDay
IfEqualValue=7
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 15][!RainmeterSetVariable bgX 91][!RainmeterSetVariable Sh1 "notebg7"][!RainmeterSetVariable Sh2 "note7"]
[bgmove_8]
Measure=Calc
Formula=mDay
IfEqualValue=8
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 15][!RainmeterSetVariable bgX 107][!RainmeterSetVariable Sh1 "notebg8"][!RainmeterSetVariable Sh2 "note8"]
[bgmove_9]
Measure=Calc
Formula=mDay
IfEqualValue=9
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 15][!RainmeterSetVariable bgX 123][!RainmeterSetVariable Sh1 "notebg9"][!RainmeterSetVariable Sh2 "note9"]
[bgmove_10]
Measure=Calc
Formula=mDay
IfEqualValue=10
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 25][!RainmeterSetVariable bgX 138][!RainmeterSetVariable Sh1 "notebg10"][!RainmeterSetVariable Sh2 "note10"]
[bgmove_11]
Measure=Calc
Formula=mDay
IfEqualValue=11
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 12][!RainmeterSetVariable bgX 163][!RainmeterSetVariable Sh1 "notebg11"][!RainmeterSetVariable Sh2 "note11"]
[bgmove_12]
Measure=Calc
Formula=mDay
IfEqualValue=12
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 20][!RainmeterSetVariable bgX 175][!RainmeterSetVariable Sh1 "notebg12"][!RainmeterSetVariable Sh2 "note12"]
[bgmove_13]
Measure=Calc
Formula=mDay
IfEqualValue=13
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 17][!RainmeterSetVariable bgX 195][!RainmeterSetVariable Sh1 "notebg13"][!RainmeterSetVariable Sh2 "note13"]
[bgmove_14]
Measure=Calc
Formula=mDay
IfEqualValue=14
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 17][!RainmeterSetVariable bgX 214][!RainmeterSetVariable Sh1 "notebg14"][!RainmeterSetVariable Sh2 "note14"]
[bgmove_15]
Measure=Calc
Formula=mDay
IfEqualValue=15
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 18][!RainmeterSetVariable bgX 232][!RainmeterSetVariable Sh1 "notebg15"][!RainmeterSetVariable Sh2 "note15"]
[bgmove_16]
Measure=Calc
Formula=mDay
IfEqualValue=16
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 18][!RainmeterSetVariable bgX 250][!RainmeterSetVariable Sh1 "notebg16"][!RainmeterSetVariable Sh2 "note16v"]
[bgmove_17]
Measure=Calc
Formula=mDay
IfEqualValue=17
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 18][!RainmeterSetVariable bgX 269][!RainmeterSetVariable Sh1 "notebg17"][!RainmeterSetVariable Sh2 "note17"]
[bgmove_18]
Measure=Calc
Formula=mDay
IfEqualValue=18
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 18][!RainmeterSetVariable bgX 288][!RainmeterSetVariable Sh1 "notebg18"][!RainmeterSetVariable Sh2 "note18"]
[bgmove_19]
Measure=Calc
Formula=mDay
IfEqualValue=19
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 18][!RainmeterSetVariable bgX 308][!RainmeterSetVariable Sh1 "notebg19"][!RainmeterSetVariable Sh2 "note19"]
[bgmove_20]
Measure=Calc
Formula=mDay
IfEqualValue=20
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 33][!RainmeterSetVariable bgX 327][!RainmeterSetVariable Sh1 "notebg20"][!RainmeterSetVariable Sh2 "note20"]
[bgmove_21]
Measure=Calc
Formula=mDay
IfEqualValue=21
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 20][!RainmeterSetVariable bgX 360][!RainmeterSetVariable Sh1 "notebg21"][!RainmeterSetVariable Sh2 "note21"]
[bgmove_22]
Measure=Calc
Formula=mDay
IfEqualValue=22
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 29][!RainmeterSetVariable bgX 381][!RainmeterSetVariable Sh1 "notebg22"][!RainmeterSetVariable Sh2 "note22"]
[bgmove_23]
Measure=Calc
Formula=mDay
IfEqualValue=23
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 27][!RainmeterSetVariable bgX 411][!RainmeterSetVariable Sh1 "notebg23"][!RainmeterSetVariable Sh2 "note23"]
[bgmove_24]
Measure=Calc
Formula=mDay
IfEqualValue=24
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 26][!RainmeterSetVariable bgX 440][!RainmeterSetVariable Sh1 "notebg24"][!RainmeterSetVariable Sh2 "note24"]
[bgmove_25]
Measure=Calc
Formula=mDay
IfEqualValue=25
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 27][!RainmeterSetVariable bgX 467][!RainmeterSetVariable Sh1 "notebg25"][!RainmeterSetVariable Sh2 "note25"]
[bgmove_26]
Measure=Calc
Formula=mDay
IfEqualValue=26
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 27][!RainmeterSetVariable bgX 495][!RainmeterSetVariable Sh1 "notebg26"][!RainmeterSetVariable Sh2 "note26"]
[bgmove_27]
Measure=Calc
Formula=mDay
IfEqualValue=27
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 27][!RainmeterSetVariable bgX 523][!RainmeterSetVariable Sh1 "notebg27"][!RainmeterSetVariable Sh2 "note27"]
[bgmove_28]
Measure=Calc
Formula=mDay
IfEqualValue=28
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 27][!RainmeterSetVariable bgX 552][!RainmeterSetVariable Sh1 "notebg28"][!RainmeterSetVariable Sh2 "note28"]
[bgmove_29]
Measure=Calc
Formula=mDay
IfEqualValue=29
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 27][!RainmeterSetVariable bgX 581][!RainmeterSetVariable Sh1 "notebg29"][!RainmeterSetVariable Sh2 "note29"]
[bgmove_30]
Measure=Calc
Formula=mDay
IfEqualValue=30
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 31][!RainmeterSetVariable bgX 609][!RainmeterSetVariable Sh1 "notebg30"][!RainmeterSetVariable Sh2 "note30"]
[bgmove_31]
Measure=Calc
Formula=mDay
IfEqualValue=31
IfEqualAction=!execute [!RainmeterSetVariable bgWidth 24][!RainmeterSetVariable bgX 641][!RainmeterSetVariable Sh1 "notebg31"][!RainmeterSetVariable Sh2 "note31"]
; ************************************
; indicator, numbers, month, year, line
; ************************************
[label.daybg]
Meter=image
X=#bgX#
Y=(#GlobalY#+1)
W=#bgWidth#
H=18
SolidColor=#bgcolor#
Hidden=0
DynamicVariables=1
[label.dayz]
Meter=string
X=7
Y=#GlobalY#
FontColor=#fontcolor#
FontFace=Giddyup Std
FontSize=12
stringAlign=left
stringStyle=bold
AntiAlias=1
Text=#Mtext#
DynamicVariables=1
[smalltitle]
Meter=STRING
MeasureName=mYear2
MeasureName2=mMonthName
X=8
Y=0
FontColor=#fontcolor#
FontFace=Giddyup Std
FontSize=11
StringAlign=left
StringStyle=normal
AntiAlias=1
Text="%2, %1"