JustPaste.it

Code

; Lines starting ; (semicolons) are commented out.
; That is, they do not affect the code and are here for demonstration purposes only.
; ----------------------------------
 
[Rainmeter]
; This section contains general settings that can be used to change how Rainmeter behaves.
Update=1000
Background=#@#Background.png
; #@# is equal to Rainmeter\Skins\illustro\@Resources
BackgroundMode=3
BackgroundMargins=0,34,0,14
 
[meterContainer]
Meter=Shape
x=1
Y=1
Shape=Rectangle 0,6,200,4,4
 
[meterContainerDetect]
Meter=Shape
x=1
Y=1
Shape=Rectangle 10,8,200,60,4 | StrokeWidth 0 | Fill Color 0,0,0,1
MouseOverAction=[!SetOption meterContainer Shape "Rectangle 6,6,196,60,4"][!Update]
MouseLeaveAction=[!SetOption meterContainer Shape "Rectangle 6,6,196,4,4"][!Update]
 
[meterBack]
Meter=Image
ImageName=#@#Background
ScaleMargins=0,34,0,14
Container=meterContainer
 
[meterTitle]
Meter=String
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
MeasureName=measureTime
X=100
Y=12
W=190
H=18
Text=%1
; %1 stands for the value of MeasureName (measureTime in this case).
Container=meterContainer
 
[Metadata]
; Contains basic information of the skin.
Name=Clock
Author=poiru
Information=Displays the current date and time.
License=Creative Commons BY-NC-SA 3.0
Version=1.0.0
 
[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
 
; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------
 
[measureTime]
; This measure returns the time in a 24-hour format (i.e. HH:MM).
Measure=Time
Format=%I:%M %p
; For a 12-hour clock, change the Format option above to: %H:%M
; Refer to the Rainmeter manual for other format codes.
 
[measureDate]
; Returns the date as DD.MM.YYYY
Measure=Time
Format=%d.%m.%Y
 
[measureDay]
; Returns the current day
Measure=Time
Format=%A
 
[Variables]
; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
 
EventDate=2024/01/10
 
; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------
 
[styleTitle]
StringAlign=Center
StringCase=Upper
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1
 
[styleLeftText]
StringAlign=Left
; Meters using styleLeftText will be left-aligned.
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
 
[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
 
[styleSeperator]
SolidColor=255,255,255,15
 
; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------
 
[meterTitle]
Meter=String
MeterStyle=styleTitle
; Using MeterStyle=styleTitle will basically "copy" the
; contents of the [styleTitle] section here during runtime.
MeasureName=measureTime
X=100
Y=12
W=190
H=18
Text=%1
; %1 stands for the value of MeasureName (measureTime in this case).
 
[meterDay]
Meter=String
MeterStyle=styleLeftText
MeasureName=measureDay
X=10
Y=40
W=190
H=14
Text=%1
 
[meterDate]
Meter=String
MeterStyle=styleRightText
MeasureName=measureDate
X=200
Y=0r
; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
W=190
H=14
Text=%1
 
[meterSeperator]
Meter=Image
MeterStyle=styleSeperator
X=10
Y=52
W=190
H=1
 
[MeasureMonthName]
Measure=Time
Format=%B
 
[MeasureDayOfMonth]
Measure=Time
Format=%#d
 
[MeasureYear]
Measure=Time
Format=%Y
 
[MeasureDayOfWeek]
Measure=Time
Format=%A
 
[measureTimeTimeStamp]
Measure=Time
 
[measureTimeEvent]
Measure=Time
TimeStamp=#EventDate#
TimeStampFormat=%Y/%m/%d
 
[measureTimeEventTimeRemaining]
Measure=Calc
Formula=measureTimeEvent-measureTimeTimeStamp
 
[MeasureUpTime]
Measure=UpTime
Format="%4!i! days"
; AddDaysToHours=
SecondsValue=[measureTimeEventTimeRemaining]
; UpdateDivider=
; Documentation: Uptime https://docs.rainmeter.net/manual/measures/uptime/
DynamicVariables=1
 
[meterEventDays]
Meter=String
MeterStyle=styleLeftText
MeasureName=MeasureUpTime
X=100
Y=40
H=14
StringAlign=Center
Text=%1
Container=meterContainer