It is currently April 30th, 2024, 10:48 pm

Cobolt theme/skin adding more HDD?

Get help with creating, editing & fixing problems with skins
The Deacon
Posts: 1
Joined: September 1st, 2012, 10:18 am

Cobolt theme/skin adding more HDD?

Post by The Deacon »

First I would like to thank everyone involved with the Rainmeter program. As I am a first time user I have only 1 question regarding the amount of HDD one can have on the desktop widget. I was wondering as there are only 3 available is there a chance of adding more?

Thank you kindly in advance

The Deacon
User avatar
Seahorse
Posts: 1175
Joined: June 9th, 2010, 5:56 pm
Location: Locks heath, UK

Re: Cobolt theme/skin adding more HDD?

Post by Seahorse »

I can be done easily enough, it currently has 3 as that is how many drives I have! How many were you after? The .ini below is for 4 hard drives, you will need to adjust the variables (I used C: a second time as the fourth drive to test).

Yes the bar meter colour has changed from Green to Cyan; I am red/green colour blind and it made no sense having a colour scheme I struggle to read. I think it fits better, so will be using it on the next release.
Capture.PNG

Code: Select all

[Rainmeter]
Author=Seahorse (AKA Osric Wuscfrea) mr.seahorse@gmail.com
Update=1000
BackgroundMode=2
SolidColor=0,0,0,1
Blur=1
BlurRegion=2,0,0,210,205,25

[Metadata]
Name=Cobalt Hard Drives
Version=1.2.3
License=Creative Commons BY-NC-SA 3.0
Information=Description: System monitor untilising bars & Aero Blur. | Instructions: Edit the variables to match your system as per adjacent comments. Left clicking drive letter opens explorer in that drive. | Credits: Nil.

;1.2.4 - Fourth drive added
;1.2.3 - Updated to reflect changes to Rainmeter 2.3.
;1.2.2 - Reversed graph direction using the new GraphStart option
;1.2.1 - fix bar recolour when > 75% full for second & third Drives.
;1.2 - Left clicking drive letter opens explorer in that drive.
;1.1 - Revised Bars and dimensions.
;1.0 - Release.

;===============================================================================================
;Variables
;===============================================================================================

[Variables] 

;Edit hard drive letters to match your PC.

HD1=C: 
HD2=F:
HD3=G:
HD4=C:

;Fonts & Colours
@include="#SKINSPATH#Cobolt\Settings.inc"

;===============================================================================================
;Measures
;===============================================================================================

;-----------------------------------------------------------------------------------------------
;Hard Drives
;-----------------------------------------------------------------------------------------------

;-----------------------------------------------------------------------------------------------
;Hard Drives - FIRST drive
;-----------------------------------------------------------------------------------------------

[MeasureHD1Space] 
Measure=FreeDiskSpace 
Drive=#HD1#
InvertMeasure=1

[MeasureHD1TotalDiskSpace]
Measure=FreeDiskSpace
Drive=#HD1#
Total=1
UpdateDivider=5

[MeasureHD1FreeDiskSpace]
Measure=FreeDiskSpace
Drive=#HD1#
UpdateDivider=5

[MeasureHD1UsedDiskSpace]
Measure=FreeDiskSpace
Drive=#HD1#
InvertMeasure=1
UpdateDivider=2

[MeasureHD1DiskReads]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Reads/sec"
PerfMonInstance="#HD1#"
PerfMonDifference=1

[MeasureHD1DiskWrites]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Writes/sec"
PerfMonInstance="#HD1#"
PerfMonDifference=1

[CalcHD1Bar]
Measure=Calc
Formula=((MeasureHD1Space/MeasureHD1TotalDiskSpace)*100)>75 ? -1 : -2
Substitute=".0":"","-1":"#@#Images\BarRed.png","-2":"#@#Images\Bar.png"

;-----------------------------------------------------------------------------------------------
;Hard Drives - SECOND drive
;-----------------------------------------------------------------------------------------------

[MeasureHD2Space] 
Measure=FreeDiskSpace 
Drive=#HD2#
InvertMeasure=1

[MeasureHD2TotalDiskSpace]
Measure=FreeDiskSpace
Drive=#HD2#
Total=1
UpdateDivider=5

[MeasureHD2FreeDiskSpace]
Measure=FreeDiskSpace
Drive=#HD2#
UpdateDivider=5

[MeasureHD2UsedDiskSpace]
Measure=FreeDiskSpace
Drive=#HD2#
InvertMeasure=1
UpdateDivider=2

[MeasureHD2DiskReads]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Reads/sec"
PerfMonInstance="#HD2#"
PerfMonDifference=1

[MeasureHD2DiskWrites]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Writes/sec"
PerfMonInstance="#HD2#"
PerfMonDifference=1

[CalcHD2Bar]
Measure=Calc
Formula=((MeasureHD2Space/MeasureHD2TotalDiskSpace)*100)>75 ? -1 : -2
Substitute=".0":"","-1":"#@#Images\BarRed.png","-2":"#@#Images\Bar.png"

;-----------------------------------------------------------------------------------------------
;Hard Drives - THIRD drive
;-----------------------------------------------------------------------------------------------

[MeasureHD3Space] 
Measure=FreeDiskSpace 
Drive=#HD3#
InvertMeasure=1

[MeasureHD3TotalDiskSpace]
Measure=FreeDiskSpace
Drive=#HD3#
Total=1
UpdateDivider=5

[MeasureHD3FreeDiskSpace]
Measure=FreeDiskSpace
Drive=#HD3#
UpdateDivider=5

[MeasureHD3UsedDiskSpace]
Measure=FreeDiskSpace
Drive=#HD3#
InvertMeasure=1
UpdateDivider=2

[MeasureHD3DiskReads]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Reads/sec"
PerfMonInstance="#HD3#"
PerfMonDifference=1

[MeasureHD3DiskWrites]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Writes/sec"
PerfMonInstance="#HD3#"
PerfMonDifference=1

[CalcHD3Bar]
Measure=Calc
Formula=((MeasureHD3Space/MeasureHD3TotalDiskSpace)*100)>75 ? -1 : -2
Substitute=".0":"","-1":"#@#Images\BarRed.png","-2":"#@#Images\Bar.png"

;-----------------------------------------------------------------------------------------------
;Hard Drives - FOURTH drive
;-----------------------------------------------------------------------------------------------

[MeasureHD4Space] 
Measure=FreeDiskSpace 
Drive=#HD4#
InvertMeasure=1

[MeasureHD4TotalDiskSpace]
Measure=FreeDiskSpace
Drive=#HD4#
Total=1
UpdateDivider=5

[MeasureHD4FreeDiskSpace]
Measure=FreeDiskSpace
Drive=#HD4#
UpdateDivider=5

[MeasureHD4UsedDiskSpace]
Measure=FreeDiskSpace
Drive=#HD4#
InvertMeasure=1
UpdateDivider=2

[MeasureHD4DiskReads]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Reads/sec"
PerfMonInstance="#HD4#"
PerfMonDifference=1

[MeasureHD4DiskWrites]
Measure=Plugin
Plugin=PerfMon
PerfMonObject=LogicalDisk
PerfMonCounter="Disk Writes/sec"
PerfMonInstance="#HD4#"
PerfMonDifference=1

[CalcHD4Bar]
Measure=Calc
Formula=((MeasureHD4Space/MeasureHD4TotalDiskSpace)*100)>75 ? -1 : -2
Substitute=".0":"","-1":"#@#Images\BarRed.png","-2":"#@#Images\Bar.png"

;===============================================================================================
;Meters
;===============================================================================================

;-----------------------------------------------------------------------------------------------
;Hard Drives - FIRST drive
;-----------------------------------------------------------------------------------------------

[MeterHD1Label]
Meter=String
X=10
Y=10
AutoScale=1
ClipString=0
FontColor=#Colour2#
MeterStyle=StringStyle
Text="#HD1#"
LeftMouseDownAction=[explorer.exe "#HD1#"]

[MeterHD1Space]
Meter=String
MeasureName=MeasureHD1TotalDiskSpace
X=R
Y=r
AutoScale=1
ClipString=0
MeterStyle=StringStyle
Text="%1"

[MeterHD1Read]
Meter=Line
MeasureName=MeasureHD1DiskReads
GraphStart=Left
LineWidth=1
Linecolor=#Colour1#
X=100
Y=8
W=100
H=15
Antialias=1

[MeterHD1Read2]
Meter=Histogram
MeasureName=MeasureHD1DiskReads
GraphStart=Left
X=r
Y=r
W=100
H=15
Antialias=1
PrimaryColor=#Colour4#

[MeterHD1Write]
Meter=Line
MeasureName=MeasureHD1DiskWrites
GraphStart=Left
LineWidth=1
Linecolor=#Colour2#
X=100
Y=8
W=100
H=15
Antialias=1
Flip=1

[MeterHD1Write2]
Meter=Histogram
MeasureName=MeasureHD1DiskWrites
GraphStart=Left
X=r
Y=r
W=100
H=15
Antialias=1
PrimaryColor=#Colour3#
Flip=1

[MeterHD1Used]
Meter=String
MeasureName=MeasureHD1UsedDiskSpace
X=10
Y=18r
AutoScale=1
MeterStyle=StringStyleNoClip
Text="%1"

[MeterHD1Free]
Meter=String
MeasureName=MeasureHD1FreeDiskSpace
X=200
Y=r
Autoscale=1
MeterStyle=StringStyleRight
Text="Free %1"

[MeterHD1BarBack]
Meter=Image
X=10
Y=12r
W=191
H=14
ImageName=#@#Images\BarBG.png

[MeterHD1Bar]
Meter=Bar
MeasureName=MeasureHD1Space
BarOrientation=Horizontal
X=r
Y=r
W=191
H=14
Flip=0
BarImage=[CalcHD1Bar]
DynamicVariables=1

[MeterDivider1]
Meter=Image
X=10
Y=2R
W=190
H=2
ImageName=#@#Images\Divider200x2.png

;-----------------------------------------------------------------------------------------------
;Hard Drives - SECOND drive
;-----------------------------------------------------------------------------------------------

[MeterHD2Label]
Meter=String
X=10
Y=8r
AutoScale=1
FontColor=#Colour2#
MeterStyle=StringStyleNoClip
Text="#HD2#"
LeftMouseDownAction=[explorer.exe "#HD2#"]

[MeterHD2Space]
Meter=String
MeasureName=MeasureHD2TotalDiskSpace
X=R
Y=r
AutoScale=1
ClipString=0
MeterStyle=StringStyle
Text="%1"

[MeterHD2Read]
Meter=Line
MeasureName=MeasureHD2DiskReads
GraphStart=Left
LineWidth=1
Linecolor=#Colour1#
X=100
Y=-1r
W=100
H=15
Antialias=1

[MeterHD2Read2]
Meter=Histogram
MeasureName=MeasureHD2DiskReads
GraphStart=Left
X=r
Y=r
W=100
H=15
Antialias=1
PrimaryColor=#Colour4#

[MeterHD2Write]
Meter=Line
MeasureName=MeasureHD2DiskWrites
GraphStart=Left
LineWidth=1
Linecolor=#Colour2#
X=100
Y=-1r
W=100
H=15
Antialias=1
Flip=1

[MeterHD2Write2]
Meter=Histogram
MeasureName=MeasureHD2DiskWrites
GraphStart=Left
X=r
Y=r
W=100
H=15
Antialias=1
PrimaryColor=#Colour3#
Flip=1

[MeterHD2Used]
Meter=String
MeasureName=MeasureHD2UsedDiskSpace
X=10
Y=18r
AutoScale=1
MeterStyle=StringStyleNoClip
Text="%1"

[MeterHD2Free]
Meter=String
MeasureName=MeasureHD2FreeDiskSpace
X=200
Y=r
W=200
Autoscale=1
MeterStyle=StringStyleRight
Text="Free %1"

[MeterHD2BarBack]
Meter=Image
X=10
Y=12r
W=191
H=14
ImageName=#@#Images\BarBG.png

[MeterHD2Bar]
Meter=Bar
MeasureName=MeasureHD2Space
BarOrientation=Horizontal
X=r
Y=r
W=191
H=14
Flip=0
BarImage=[CalcHD2Bar]
DynamicVariables=1

[MeterDivider2]
Meter=Image
X=10
Y=2R
W=190
H=2
ImageName=#@#Images\Divider200x2.png

;-----------------------------------------------------------------------------------------------
;Hard Drives - THIRD drive
;-----------------------------------------------------------------------------------------------

[MeterHD3Label]
Meter=String
X=10
Y=8r
AutoScale=1
FontColor=#Colour2#
MeterStyle=StringStyleNoClip
Text="#HD3#"
LeftMouseDownAction=[explorer.exe "#HD3#"]

[MeterHD3Space]
Meter=String
MeasureName=MeasureHD3TotalDiskSpace
X=R
Y=r
AutoScale=1
ClipString=0
MeterStyle=StringStyle
Text="%1"

[MeterHD3Read]
Meter=Line
MeasureName=MeasureHD3DiskReads
GraphStart=Left
LineWidth=1
Linecolor=#Colour1#
X=100
Y=-1r
W=100
H=15
Antialias=1

[MeterHD3Read2]
Meter=Histogram
MeasureName=MeasureHD3DiskReads
GraphStart=Left
X=r
Y=r
W=100
H=15
Antialias=1
PrimaryColor=#Colour4#

[MeterHD3Write]
Meter=Line
MeasureName=MeasureHD3DiskWrites
GraphStart=Left
LineWidth=1
Linecolor=#Colour2#
X=100
Y=-1r
W=100
H=15
Antialias=1
Flip=1

[MeterHD3Write2]
Meter=Histogram
MeasureName=MeasureHD3DiskWrites
GraphStart=Left
X=r
Y=r
W=100
H=15
Antialias=1
PrimaryColor=#Colour3#
Flip=1

[MeterHD3Used]
Meter=String
MeasureName=MeasureHD3UsedDiskSpace
X=12
Y=18r
AutoScale=1
MeterStyle=StringStyleNoClip
Text="%1"

[MeterHD3Free]
Meter=String
MeasureName=MeasureHD3FreeDiskSpace
X=200
Y=r
Autoscale=1
MeterStyle=StringStyleRight
Text="Free %1"

[MeterHD3BarBack]
Meter=Image
X=10
Y=12r
W=191
H=14
ImageName=#@#Images\BarBG.png

[MeterHD3Bar]
Meter=Bar
MeasureName=MeasureHD3Space
BarOrientation=Horizontal
X=r
Y=r
W=191
H=14
Flip=0
BarImage=[CalcHD3Bar]
DynamicVariables=1

[MeterDivider3]
Meter=Image
X=10
Y=2R
W=190
H=2
ImageName=#@#Images\Divider200x2.png

;-----------------------------------------------------------------------------------------------
;Hard Drives - FOURTH drive
;-----------------------------------------------------------------------------------------------

[MeterHD4Label]
Meter=String
X=10
Y=8r
AutoScale=1
FontColor=#Colour2#
MeterStyle=StringStyleNoClip
Text="#HD4#"
LeftMouseDownAction=[explorer.exe "#HD4#"]

[MeterHD4Space]
Meter=String
MeasureName=MeasureHD4TotalDiskSpace
X=R
Y=r
AutoScale=1
ClipString=0
MeterStyle=StringStyle
Text="%1"

[MeterHD4Read]
Meter=Line
MeasureName=MeasureHD4DiskReads
GraphStart=Left
LineWidth=1
Linecolor=#Colour1#
X=100
Y=-1r
W=100
H=15
Antialias=1

[MeterHD4Read2]
Meter=Histogram
MeasureName=MeasureHD4DiskReads
GraphStart=Left
X=r
Y=r
W=100
H=15
Antialias=1
PrimaryColor=#Colour4#

[MeterHD4Write]
Meter=Line
MeasureName=MeasureHD4DiskWrites
GraphStart=Left
LineWidth=1
Linecolor=#Colour2#
X=100
Y=-1r
W=100
H=15
Antialias=1
Flip=1

[MeterHD4Write2]
Meter=Histogram
MeasureName=MeasureHD4DiskWrites
GraphStart=Left
X=r
Y=r
W=100
H=15
Antialias=1
PrimaryColor=#Colour3#
Flip=1

[MeterHD4Used]
Meter=String
MeasureName=MeasureHD4UsedDiskSpace
X=12
Y=18r
AutoScale=1
MeterStyle=StringStyleNoClip
Text="%1"

[MeterHD4Free]
Meter=String
MeasureName=MeasureHD4FreeDiskSpace
X=200
Y=r
Autoscale=1
MeterStyle=StringStyleRight
Text="Free %1"

[MeterHD4BarBack]
Meter=Image
X=10
Y=12r
W=191
H=14
ImageName=#@#Images\BarBG.png

[MeterHD4Bar]
Meter=Bar
MeasureName=MeasureHD4Space
BarOrientation=Horizontal
X=r
Y=r
W=191
H=14
Flip=0
BarImage=[CalcHD4Bar]
DynamicVariables=1

;-----------------------------------------------------------------------------------------------
;Graphics - Additionally forces the aero blur borders to correct position.
;-----------------------------------------------------------------------------------------------

[MeterGlossTop]
Meter=Image
X=0
Y=0
W=210
H=40
ImageName=#@#Images/GlossTop.png

[MeterGlossBottom]
Meter=Image
X=0
Y=190
W=210
H=25
ImageName=#@#Images/GlossBottom.png
You do not have the required permissions to view the files attached to this post.
"Regrettably your planet is one of those scheduled for demolition"
Mike

My Skins at DeviantArt