It is currently May 19th, 2019, 7:39 am

Disk tuning

Help with creating, editing & fixing problems with skins
Agency
Posts: 1
Joined: February 16th, 2019, 4:35 pm

Disk tuning

Agency » February 16th, 2019, 4:47 pm

I downloaded Elementary 3.0 skin from Deviant and how to add a second disk to the system? It shows only how much free space on disk D, but I don’t have a C drive at all. How to configure what would both the C and D disks show
https://www.deviantart.com/flyinghyrax/art/Elementary-3-0-426588102
Yincognito
Posts: 652
Joined: February 27th, 2015, 2:38 pm

Re: Disk tuning

Yincognito » February 16th, 2019, 5:58 pm

Edit C:\Users\[your username]\Documents\Rainmeter\Skins\Elementary\System\shared.inc and replace with:

Code: Select all

drive=C:
drive2=D:
in the corresponding section (i.e. [Variables]) and then add:

Code: Select all

[msrDrive2]
Measure=FreeDiskSpace
Drive=#drive2#
InvertMeasure=#showUsedDisk#
UpdateDivider=10
right after the [msrDrive] section.
Then, in the system-h.ini file from the same folder, add:

Code: Select all

[mtrDrive2]
Meter=STRING
MeasureName=msrDrive2
MeterStyle=allString | subString
X=150r
Y=0
Percentual=1
Text="#drive2#\ %1%"
right after the [mtrDrive] section.
Likewise, in the system-v.ini file from the same folder, add:

Code: Select all

[mtrDrive2]
Meter=STRING
MeasureName=msrDrive2
MeterStyle=allString | subString
X=0
Y=5R
AutoScale=1
NumOfDecimals=0
Text="#drive2#\ %1"
right after the [mtrDrive] section.
Save all the modified files by overwriting the originals, and then Refresh the System skin. That's all.
Basically, just copy-paste and making additional measures/meters for the D: drive. You can repeat the process accordingly for any additional drives you want to monitor.
User avatar
balala
Rainmeter Sage
Posts: 8188
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disk tuning

balala » February 16th, 2019, 6:30 pm

Yincognito wrote:
February 16th, 2019, 5:58 pm
then add:

Code: Select all

[msrDrive2]
Measure=FreeDiskSpace
Drive=#drive2#
InvertMeasure=#showUsedDisk#
UpdateDivider=10
right after the [msrDrive] section.
It's not absolutely necessary to add this section after [msrDrive]. It can be added anywhere. In case of meters there are two things which has to be taken into account: their position if they are positioned relative to each other and the drawing order (which meter to overlap which one). But in case of measures, they can be used in any order (here also are some exceptions, but not the case here).
Yincognito
Posts: 652
Joined: February 27th, 2015, 2:38 pm

Re: Disk tuning

Yincognito » February 16th, 2019, 6:43 pm

balala wrote:
February 16th, 2019, 6:30 pm
It's not absolutely necessary to add this section after [msrDrive]. It can be added anywhere. In case of meters there are two things which has to be taken into account: their position if they are positioned relative to each other and the drawing order (which meter to overlap which one). But in case of measures, they can be used in any order (here also are some exceptions, but not the case here).
Agreed. Just wanted to make things easier to do, for someone less familarized with Rainmeter. And to avoid minor follow-up questions like "where do I put this?" and such.
User avatar
balala
Rainmeter Sage
Posts: 8188
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disk tuning

balala » February 16th, 2019, 6:51 pm

Yincognito wrote:
February 16th, 2019, 6:43 pm
Agreed. Just wanted to make things easier to do, for someone less familarized with Rainmeter. And to avoid minor follow-up questions like "where do I put this?" and such.
Yes, probably you're right with this. Sometimes I forget how is when you don't know where to put some newly added sections. As such, reading your reply, I felt I have to intervene, to clarify this. Sorry...
Yincognito
Posts: 652
Joined: February 27th, 2015, 2:38 pm

Re: Disk tuning

Yincognito » February 16th, 2019, 7:00 pm

balala wrote:
February 16th, 2019, 6:51 pm
Yes, probably you're right with this. Sometimes I forget how is when you don't know where to put some newly added sections. As such, reading your reply, I felt I have to intervene, to clarify this. Sorry...
No need to justify yourself - you were correct in what you said. But yeah, you have to take practical considerations when giving an advice, according to how much the OP knows about the things you mention. Plus, writing the related measures and meters next to one another improves the clarity of the code, since you find all the related things in the same place in the file.
User avatar
balala
Rainmeter Sage
Posts: 8188
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Disk tuning

balala » February 16th, 2019, 7:04 pm

Yincognito wrote:
February 16th, 2019, 7:00 pm
No need to justify yourself - you were correct in what you said. But yeah, you have to take practical considerations when giving an advice, according to how much the OP knows about the things you mention. Plus, writing the related measures and meters next to one another improves the clarity of the code, since you find all the related things in the same place in the file.