BaSs_HaXoR

rainmeter: 3 Disks.ini (+autorefresh)

Dec 14th, 2025 (edited)
5,398
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Lines starting ; (semicolons) are commented out.
  2. ; That is, they do not affect the code and are here for demonstration purposes only.
  3. ; ----------------------------------
  4.  
  5. ; HOWTO: Adding more disks
  6. ; ----------------------------------
  7. ; Adding more disks is a pretty straightforward process. Follow the following steps to turn
  8. ; this 2 disks skin into a 3 disks skin. You can then extend it even further as you wish.
  9. ;
  10. ; 1) Create a new variable called disk3=X: directly below disk2=D: in the [Variables] section
  11. ; 2) Create a copy of the [measureTotalDisk2] and [measureUsedDisk2] sections
  12. ; 3) Rename the copied sections to [measureTotalDisk3] and [measureUsedDisk3], respectively.
  13. ;    Also change Drive=#disk2# to Drive=#disk3#
  14. ; 4) Create a copy of the [meterLabelDisk2], [meterValueDisk2], and [meterBarDisk2].
  15. ;    Rename all Disk2's in the copied sections to Disk3.
  16. ; 5) Now we need to change the Y= values to adjust height. Change Y= under [meterLabelDisk3]
  17. ;    to Y=80 (calculated by adding 20 to the Y= value of previous meterLabel).
  18. ;    Then change Y= under [meterBarDisk3] to Y=92 (calculated by adding 20 to the Y= value of previous meterBar).
  19. ; 6) Save the file as '3 Disks.ini'. Now right-click on the Rainmeter tray icon and select
  20. ;    'Refresh All'. Now go activate the '3 Disks.ini' skin and enjoy! :)
  21.  
  22. [Rainmeter]
  23. ; This section contains general settings that can be used to change how Rainmeter behaves.
  24. Update=1000
  25. Background=#@#Background.png
  26. ; #@# is equal to Rainmeter\Skins\illustro\@Resources
  27. BackgroundMode=3
  28. BackgroundMargins=0,34,0,14
  29.  
  30. [Metadata]
  31. ; Contains basic information of the skin.
  32. Name=Disk
  33. Author=poiru
  34. Information=Displays disk usage.
  35. License=Creative Commons BY-NC-SA 3.0
  36. Version=1.0.0
  37.  
  38. [Variables]
  39. ; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
  40. fontName=Trebuchet MS
  41. textSize=8
  42. colorBar=235,170,0,255
  43. colorText=255,255,255,205
  44. disk1=C:
  45. disk2=D:
  46. disk3=F:
  47. ; ----------------------------------
  48. ; MEASURES return some kind of value
  49. ; ----------------------------------
  50.  
  51. [measureTotalDisk1]
  52. ; This measure returns the total disk space
  53. Measure=FreeDiskSpace
  54. Drive=#disk1#
  55. Total=1
  56. UpdateDivider=1
  57.  
  58. [measureUsedDisk1]
  59. ; Returns inverted value of free disk space (i.e. used disk space)
  60. Measure=FreeDiskSpace
  61. Drive=#disk1#
  62. InvertMeasure=1
  63. UpdateDivider=1
  64.  
  65. [measureTotalDisk2]
  66. Measure=FreeDiskSpace
  67. Drive=#disk2#
  68. Total=1
  69. UpdateDivider=1
  70.  
  71. [measureUsedDisk2]
  72. Measure=FreeDiskSpace
  73. Drive=#disk2#
  74. InvertMeasure=1
  75. UpdateDivider=1
  76.  
  77. [measureTotalDisk3]
  78. Measure=FreeDiskSpace
  79. Drive=#disk3#
  80. Total=1
  81. UpdateDivider=1
  82.  
  83. [measureUsedDisk3]
  84. Measure=FreeDiskSpace
  85. Drive=#disk3#
  86. InvertMeasure=1
  87. UpdateDivider=1
  88. ; ----------------------------------
  89. ; STYLES are used to "centralize" options
  90. ; ----------------------------------
  91.  
  92. [styleTitle]
  93. StringAlign=Center
  94. StringCase=Upper
  95. StringStyle=Bold
  96. StringEffect=Shadow
  97. FontEffectColor=0,0,0,50
  98. FontColor=#colorText#
  99. FontFace=#fontName#
  100. FontSize=10
  101. AntiAlias=1
  102. ClipString=1
  103.  
  104. [styleLeftText]
  105. StringAlign=Left
  106. ; Meters using styleLeftText will be left-aligned.
  107. StringCase=None
  108. StringStyle=Bold
  109. StringEffect=Shadow
  110. FontEffectColor=0,0,0,20
  111. FontColor=#colorText#
  112. FontFace=#fontName#
  113. FontSize=#textSize#
  114. AntiAlias=1
  115. ClipString=1
  116.  
  117. [styleRightText]
  118. StringAlign=Right
  119. StringCase=None
  120. StringStyle=Bold
  121. StringEffect=Shadow
  122. FontEffectColor=0,0,0,20
  123. FontColor=#colorText#
  124. FontFace=#fontName#
  125. FontSize=#textSize#
  126. AntiAlias=1
  127. ClipString=1
  128.  
  129. [styleBar]
  130. BarColor=#colorBar#
  131. BarOrientation=HORIZONTAL
  132. SolidColor=255,255,255,15
  133.  
  134. ; ----------------------------------
  135. ; METERS display images, text, bars, etc.
  136. ; ----------------------------------
  137.  
  138. [meterTitle]
  139. Meter=String
  140. MeterStyle=styleTitle
  141. ; Using MeterStyle=styleTitle will basically "copy" the
  142. ; contents of the [styleTitle] section here during runtime.
  143. X=100
  144. Y=12
  145. W=190
  146. H=18
  147. Text=Disks
  148. ; Even though the text is set to Disks, Rainmeter will display
  149. ; it as DISKS, because styleTitle contains StringCase=Upper.
  150.  
  151. [meterLabelDisk1]
  152. Meter=String
  153. MeterStyle=styleLeftText
  154. X=10
  155. Y=40
  156. W=190
  157. H=14
  158. Text=#disk1#\
  159.  
  160. [meterValueDisk1]
  161. Meter=String
  162. MeterStyle=styleRightText
  163. MeasureName=measureUsedDisk1
  164. MeasureName2=measureTotalDisk1
  165. X=200
  166. Y=0r
  167. ; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
  168. ; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
  169. W=190
  170. H=14
  171. Text=%1B/%2B used
  172. ; %1 stands for the value of MeasureName (measureUsedDisk1 in this case).
  173. ; %2 stands for the value of MeasureName2.
  174. NumOfDecimals=1
  175. AutoScale=1
  176. ; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
  177. ; automatically scale the value into a more readable figure.
  178. LeftMouseUpAction=["#disk1#\"]
  179. ; Open #disk1# on click
  180.  
  181. [meterBarDisk1]
  182. Meter=Bar
  183. MeterStyle=styleBar
  184. MeasureName=measureUsedDisk1
  185. X=10
  186. Y=52
  187. W=190
  188. H=1
  189.  
  190. [meterLabelDisk2]
  191. Meter=String
  192. MeterStyle=styleLeftText
  193. X=10
  194. Y=60
  195. W=190
  196. H=14
  197. Text=#disk2#\
  198. LeftMouseUpAction=["#disk2#\"]
  199.  
  200. [meterValueDisk2]
  201. Meter=String
  202. MeterStyle=styleRightText
  203. MeasureName=measureUsedDisk2
  204. MeasureName2=measureTotalDisk2
  205. X=200
  206. Y=0r
  207. W=190
  208. H=14
  209. Text=%1B/%2B used
  210. NumOfDecimals=1
  211. AutoScale=1
  212.  
  213. [meterBarDisk2]
  214. Meter=Bar
  215. MeterStyle=styleBar
  216. MeasureName=measureUsedDisk2
  217. X=10
  218. Y=72
  219. W=190
  220. H=1
  221.  
  222.  
  223. [meterLabelDisk3]
  224. Meter=String
  225. MeterStyle=styleLeftText
  226. X=10
  227. Y=80
  228. W=190
  229. H=14
  230. Text=#disk3#\
  231. LeftMouseUpAction=["#disk3#\"]
  232.  
  233. [meterValueDisk3]
  234. Meter=String
  235. MeterStyle=styleRightText
  236. MeasureName=measureUsedDisk3
  237. MeasureName2=measureTotalDisk3
  238. X=200
  239. Y=0r
  240. W=190
  241. H=14
  242. Text=%1B/%2B used
  243. NumOfDecimals=1
  244. AutoScale=1
  245.  
  246. [meterBarDisk3]
  247. Meter=Bar
  248. MeterStyle=styleBar
  249. MeasureName=measureUsedDisk3
  250. X=10
  251. Y=92
  252. W=190
  253. H=1
Advertisement