Skip to content

Instantly share code, notes, and snippets.

@lysylbn
Last active August 5, 2024 08:09
Show Gist options
  • Save lysylbn/cad7ebabeab96e543e6e3bbc49fb2606 to your computer and use it in GitHub Desktop.
Save lysylbn/cad7ebabeab96e543e6e3bbc49fb2606 to your computer and use it in GitHub Desktop.
Yet Another Clock skin for Rainmeter
[Rainmeter]
@include=clock.ini
[Style]
InlineSetting3=Color | 0,0,0
[Metadata]
Name=Yet Another Clock
Author=lysylbn
Information=Self centers on the screen. Works Best with Red Hat Display font https://github.com/RedHatOfficial/RedHatFont. Easily Resizable with Scroll Wheel, then Left Click to save & fix alignment
Version=1
[Rainmeter]
MiddleMouseUpAction=!Refresh
ContextTitle="Edit Main Config"
ContextAction=[#CURRENTPATH#\CLOCK.ini]
AccurateText=1
DefaultWindowX=50%
DefaultAnchorX=50%
DefaultWindowY=5%
SkinWidth=(#size#*4)
[Variables]
Size=160
[mTime]
Measure=Time
Format=%H%M
[mDate]
Measure=Time
Format=%A %B %#d
[Style]
AntiAlias=1
InlineSetting=Face | Red Hat Display | Segoe UI Variable Display | Segoe UI
InlineSetting2=Size | #size#
InlineSetting3=Color | 255,255,255
InlineSetting4=Weight | 500
InlineSetting5=Shadow | 0 | 0 | (#size#/10) | 0,0,0,128
StringAlign=Center
X=(#size#*2)
DynamicVariables=1
MouseScrollUpAction=[!SetVariable Size "(clamp(#Size#+1,48,480))"][!Update][!Redraw]
MouseScrollDownAction=[!SetVariable Size "(clamp(#Size#-1,48,480))"][!Update][!Redraw]
LeftMouseUpAction=[!WriteKeyValue Variables Size #Size# "#CURRENTPATH#\CLOCK.ini"][!Refresh]
ToolTipTitle=Size: #size#
ToolTipText=Use Scroll Wheel to adjust size#CRLF#Left Click to save & fix position
[Time]
Meter=String
MeterStyle=Style
InlineSetting6=CharacterSpacing | (-#size#/100)
InlineSetting7=Weight | 100
InlinePattern7=..$
MeasureName=mTime
[Date]
Meter=String
MeterStyle=Style
MeasureName=mDate
InlineSetting2=Size | (#size#/6)
InlineSetting6=Weight | 100
InlinePattern6=.* 
InlineSetting7=CharacterSpacing | 5
InlineSetting8=Case | upper
Y=(#size#*1.5)
[Rainmeter]
@include=clock.ini
[Style]
InlineSetting3=GradientColor | ([mTime]/7) | 250, 151, 161; 0 | 151, 128, 229; 1
[Rainmeter]
@include=clock.ini
[Style]
InlineSetting3=GradientColor | ([mTime]/7) | 151, 128, 229; 0 | 83, 206, 218; 1
[Rainmeter]
@include=clock.ini
[Style]
InlineSetting3=GradientColor | ([mTime]/7) | 83, 206, 218; 0 | 151, 128, 229; 1
@lysylbn
Copy link
Author

lysylbn commented Aug 3, 2024

yac

Self centers on the screen. Works Best with Red Hat Display
Easily Resizable with Scroll Wheel, then Left Click to save & fix alignment

@lysylbn
Copy link
Author

lysylbn commented Aug 4, 2024

Added Several Styles
CSoftwareRainmeterSkinsCenterClockGradient ini_t1
CSoftwareRainmeterSkinsCenterClockGradient2 ini_t1
CSoftwareRainmeterSkinsCenterClockGradient3 ini 1_t1
CSoftwareRainmeterSkinsCenterClockBlack ini_t1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment