Code: Select all
[Rainmeter]
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
DynamicWindowSize=1
[Metadata]
Name=Drive Info
Author=sl23
Information=Drive Info: Displays 2 disks at a time, but can be changed via L/M/R Mouse click to change between 6 disks.||Credits: Adapted from "SimplyRound" Suite by Krzysztof "gronostaj" Smialek||Help via forum: balala, eclectic-tech, jsmorley
Version=2021.8.7
License=CC BY 3.0
[Variables]
Color1=255,255,255,200
Color2=128,255,0
Color3=128,255,0,200
Color4=0,255,255
Color5=255,255,255,60
Color6=104,191,64,200
Color7=64,143,191,200
; These you can change to your own disks
UserDisk1=C
UserDisk2=D
UserDisk3=E
UserDisk4=F
UserDisk5=G
UserDisk6=H
; DO NOT TOUCH
Disk1=C
Disk2=D
DiskNorm=175,175,175
DiskRead=128,255,0
DiskWrite=255,90,90
DiskBoth=235,170,0
APP1=["explorer.exe" "#Disk1#:\"]
APP2=["#@#\Drives\USBDiskEjector\USB_Disk_Eject.exe """/SHOWEJECT /REMOVELETTER #Disk1#""""]
APP3=["explorer.exe" "#Disk2#:\"]
APP4=["#@#\Drives\USBDiskEjector\USB_Disk_Eject.exe """/SHOWEJECT /REMOVELETTER #Disk2#""""]
NAME1=Open
NAME2=Eject
NAME3=Open
NAME4=Eject
========================================
; Background
========================================
[Bg]
Meter=Shape
Shape=Rectangle 0,0,230,70,35 | Fill Color 0,0,0,150 | StrokeWidth 2 | Extend StrokeAlpha
StrokeAlpha=Stroke Color #Color5#
DynamicVariables=1
X=2
Y=2
[Bg1]
Meter=Shape
Shape=Rectangle 0,0,60,60,50 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Rectangle 9,9,42,42,50 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Rectangle 5,5,50,50,50 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#
LeftMouseUpAction=#APP1#
RightMouseUpAction=#APP2#
MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"] [!UpdateMeter *][!Redraw]
DynamicVariables=1
ToolTipTitle=#Disk1#:/ [m1Label]
ToolTipText=L - #NAME1##CRLF#R - #NAME2##CRLF#
X=7
Y=7
[BgLine]
Meter=Shape
Shape=Rectangle 67,42,100,1,0 | Fill Color #Color5# | StrokeWidth 0
DynamicVariables=1
[Bg2]
Meter=Shape
Shape=Rectangle 0,0,60,60,50 | Fill Color 0,0,0,50 | StrokeWidth 2 | Extend StrokeAlpha
Shape2=Rectangle 9,9,42,42,50 | Fill Color 0,0,0,1 | StrokeWidth 2 | Extend StrokeAlpha2
Shape3=Rectangle 5,5,50,50,50 | Fill Color 0,0,0,1 | StrokeWidth 10 | Stroke Color 255,255,255,20
StrokeAlpha=Stroke Color #Color5#
StrokeAlpha2=Stroke Color #Color5#
LeftMouseUpAction=#APP3#
RightMouseUpAction=#APP4#
MouseOverAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color4#"] [!UpdateMeter *][!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# StrokeAlpha "Stroke Color #Color5#"] [!UpdateMeter *][!Redraw]
DynamicVariables=1
ToolTipTitle=#Disk2#:/ [m2Label]
ToolTipText=L - #NAME3##CRLF#R - #NAME4#
X=167
Y=7
========================================
; STYLES
========================================
[sAllText]
FontFace=Trebuchet MS
StringStyle=Bold
StringAlign=Center
FontSize=12
FontColor=#Color1#
StringEffect=Shadow
FontEffectColor=0,0,0,150
AntiAlias=1
Group=Disk
[sRoundBar]
LineStart=22
LineLength=28
LineWidth=2
StartAngle=(Rad(270))
Antialias=1
Solid=1
Group=Disk
[sHighlight]
MouseOverAction=[!SetOption #CURRENTSECTION# FontColor "128,255,0"] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
MouseLeaveAction=[!SetOption #CURRENTSECTION# FontColor ""] [!UpdateMeter #CURRENTSECTION#] [!Redraw]
[Title]
Meter=String
MeterStyle=sAllText | sHighlight
FontSize=8
Text=DRIVE
LeftMouseUpAction=[!WriteKeyValue Variables Disk1 #UserDisk1#] [!WriteKeyValue Variables Disk2 #UserDisk2#] [!Refresh]
MiddleMouseUpAction=[!WriteKeyValue Variables Disk1 #UserDisk3#] [!WriteKeyValue Variables Disk2 #UserDisk4#] [!Refresh]
RightMouseUpAction=[!WriteKeyValue Variables Disk1 #UserDisk5#] [!WriteKeyValue Variables Disk2 #UserDisk6#] [!Refresh]
ToolTipText="L - Disk 1+2#CRLF#M - Disk 3+4#CRLF#R - Disk 5+6"
Group=Disk
X=116
Y=29
========================================
; DISK - 1
========================================
[m1Label]
Measure=FreeDiskSpace
Drive=#Disk1#:
UpdateDivider=-1
Label=1
[m1Free]
Measure=FreeDiskSpace
Drive=#Disk1#:
IgnoreRemovable=0
RegExpSubstitute=1
Substitute="^(.+)$":"\1B","0.00 B":""
[m1Total]
Measure=FreeDiskSpace
Drive=#Disk1#:
Total=1
UpdateDivider=-1
IgnoreRemovable=0
Substitute=".00":""
DynamicVariables=1
[mDiskRead1]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Read Bytes/sec
Name=#Disk1#:
[mDiskWrite1]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Write Bytes/sec
Name=#Disk1#:
IfCondition=((mDiskRead1=0)&&(mDiskWrite1=0))
IfTrueAction=[!SetOption 1Label FontColor "#DiskNorm#"] [!UpdateMeter "1Label"] [!Redraw]
IfCondition2=((mDiskRead1>0)&&(mDiskWrite1=0))
IfTrueAction2=[!SetOption 1Label FontColor "#DiskRead#"] [!UpdateMeter "1Label"] [!Redraw]
IfCondition3=((mDiskRead1=0)&&(mDiskWrite1>0))
IfTrueAction3=[!SetOption 1Label FontColor "#DiskWrite#"] [!UpdateMeter "1Label"] [!Redraw]
IfCondition4=((mDiskRead1>0)&&(mDiskWrite1>0))
IfTrueAction4=[!SetOption 1Label FontColor "#DiskBoth#"] [!UpdateMeter "1Label"] [!Redraw]
[m1Used]
Measure=FreeDiskSpace
Drive=#Disk1#:
IgnoreRemovable=0
InvertMeasure=1
[1RoundBar]
Meter=RoundLine
MeterStyle=sRoundBar
MeasureName=m1Used
LineColor=#Color6#
X=37
Y=37
[1Label]
Meter=String
MeterStyle=sAllText
MeasureName=m1Used
Percentual=1
FontSize=16
Text=#Disk1#
X=37
Y=24
[1Free]
Meter=String
MeterStyle=sAllText | sHighlight
MeasureName=m1Free
MeasureName2=m1Total
StringAlign=Left
NumOfDecimals=2
AutoScale=1
Text=%1
ToolTipText="Size: %2B"
InlineSetting=Size | 8
InlinePattern=^.+ (.+)$
X=65
Y=7
========================================
; DISK - 2
========================================
[m2Label]
Measure=FreeDiskSpace
Drive=#Disk2#:
UpdateDivider=-1
Label=1
[m2Free]
Measure=FreeDiskSpace
Drive=#Disk2#:
IgnoreRemovable=0
RegExpSubstitute=1
Substitute="^(.+)$":"\1B","0.00 B":""
[m2Total]
Measure=FreeDiskSpace
Drive=#Disk2#:
Total=1
UpdateDivider=-1
IgnoreRemovable=0
Substitute=".00":""
DynamicVariables=1
[mDiskRead2]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Read Bytes/sec
Name=#Disk2#:
[mDiskWrite2]
Measure=Plugin
Plugin=UsageMonitor
Category=LogicalDisk
Counter=Disk Write Bytes/sec
Name=#Disk2#:
IfCondition=((mDiskRead2=0)&&(mDiskWrite2=0))
IfTrueAction=[!SetOption 2Label FontColor "#DiskNorm#"] [!UpdateMeter "2Label"] [!Redraw]
IfCondition2=((mDiskRead2>0)&&(mDiskWrite2=0))
IfTrueAction2=[!SetOption 2Label FontColor "#DiskRead#"] [!UpdateMeter "2Label"] [!Redraw]
IfCondition3=((mDiskRead2=0)&&(mDiskWrite2>0))
IfTrueAction3=[!SetOption 2Label FontColor "#DiskWrite#"] [!UpdateMeter "2Label"] [!Redraw]
IfCondition4=((mDiskRead2>0)&&(mDiskWrite2>0))
IfTrueAction4=[!SetOption 2Label FontColor "#DiskBoth#"] [!UpdateMeter "2Label"] [!Redraw]
[m2Used]
Measure=FreeDiskSpace
Drive=#Disk2#:
IgnoreRemovable=0
InvertMeasure=1
[2RoundBar]
Meter=RoundLine
MeterStyle=sRoundBar
MeasureName=m2Used
LineColor=#Color7#
X=197
Y=37
[2Label]
Meter=String
MeterStyle=sAllText
MeasureName=m2Used
Text=#Disk2#
Percentual=1
FontSize=16
X=197
Y=24
[2Free]
Meter=String
MeterStyle=sAllText | sHighlight
MeasureName=m2Free
MeasureName2=m2Total
StringAlign=Right
NumOfDecimals=2
AutoScale=1
Text=%1
ToolTipText="Size: %2B"
InlineSetting=Size | 8
InlinePattern=^.+ (.+)$
X=166
Y=47