Instantly share code, notes, and snippets.

Embed
What would you like to do?
Rainmeter 极简时钟插件
; reference: https://docs.rainmeter.net/manual/getting-started/basic-tutorials/clock/
; ------------------------------------------------------------------------------------
[Rainmeter]
Update=1000
[Metadata]
Name=Clock
Author=showzeng
Information=Displays the current time in a simple way.
Version=1.0.0
License=Creative Commons BY-NC-SA 3.0
[Variables]
fontName=Monaco
colorText=255,255,255
; ----------------------------------
; MEASURES return some kind of value
; ----------------------------------
[measureTime]
; This measure returns the time in a 24-hour format (i.e. HH:MM).
Measure=Time
Format=%H:%M
[measureMonthName]
Measure=Time
Format=%b
[measureDayOfMonth]
Measure=Time
Format=%#d
[measureDayOfWeek]
Measure=Time
Format=%a
; ----------------------------------
; STYLES are used to "centralize" options
; ----------------------------------
[styleText]
FontColor=#colorText#
FontFace=#fontName#
AntiAlias=1
ClipString=1
; ----------------------------------
; METERS display images, text, bars, etc.
; ----------------------------------
[meterTime]
Meter=String
MeterStyle=styleText
MeasureName=measureTime
X=0
Y=0
FontSize=80
StringStyle=Bold
StringCase=Upper
Text=%1
[meterMonthDayWeek]
Meter=String
MeterStyle=styleText
MeasureName=measureMonthName
MeasureName2=measureDayOfMonth
MeasureName3=measureDayOfWeek
X=120
Y=130
FontSize=25
Text=%3, %1 %2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment