Advertisement
MrSlimbrowser

3-Disks.ini

Apr 16th, 2020
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.90 KB | None | 0 0
  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.  
  31. [Metadata]
  32. ; Contains basic information of the skin.
  33. Name=Disk
  34. Author=poiru
  35. Information=Displays disk usage.
  36. License=Creative Commons BY-NC-SA 3.0
  37. Version=1.0.0
  38.  
  39. [Variables]
  40. ; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
  41. fontName=Trebuchet MS
  42. textSize=8
  43. colorBar=235,170,0,255
  44. colorText=255,255,255,205
  45. disk1=C:
  46. disk2=D:
  47. disk3=S:
  48. BatteryLevel=#CURRENTPATH#BatteryLevel.txt
  49.  
  50.  
  51. ; ----------------------------------
  52. ; MEASURES return some kind of value
  53. ; ----------------------------------
  54.  
  55. [measureTotalDisk1]
  56. ; This measure returns the total disk space
  57. Measure=FreeDiskSpace
  58. Drive=#disk1#
  59. Total=1
  60. UpdateDivider=120
  61.  
  62. [measureUsedDisk1]
  63. ; Returns inverted value of free disk space (i.e. used disk space)
  64. Measure=FreeDiskSpace
  65. Drive=#disk1#
  66. InvertMeasure=1
  67. UpdateDivider=120
  68.  
  69. [measureTotalDisk2]
  70. Measure=FreeDiskSpace
  71. Drive=#disk2#
  72. Total=1
  73. UpdateDivider=600
  74.  
  75. [measureUsedDisk2]
  76. Measure=FreeDiskSpace
  77. Drive=#disk2#
  78. InvertMeasure=1
  79. UpdateDivider=600
  80.  
  81. [measureTotalDisk3]
  82. Measure=FreeDiskSpace
  83. Drive=#disk3#
  84. Total=1
  85. UpdateDivider=600
  86.  
  87. [measureUsedDisk3]
  88. Measure=FreeDiskSpace
  89. Drive=#disk3#
  90. InvertMeasure=1
  91. UpdateDivider=600
  92.  
  93. [MeasureDownloadsFolderSize]
  94. Measure=Plugin
  95. Plugin=FolderInfo
  96. Folder=C:\Users\marce\Downloads
  97. InfoType=FolderSize
  98. IncludeHiddenFiles=1
  99. IncludeSubFolders=1
  100. IncludeSystemFiles=0
  101. RegExpFilter=.*
  102. UpdateDivider=600
  103.  
  104. [MeasureDownloadsFolderCount]
  105. Measure=Plugin
  106. Plugin=FolderInfo
  107. Folder=[MeasureDownloadsFolderSize]
  108. InfoType=FileCount
  109. IncludeHiddenFiles=1
  110. IncludeSubFolders=1
  111. IncludeSystemFiles=0
  112. RegExpFilter=.*
  113. UpdateDivider=600
  114.  
  115. [MeasureBatteryLevelHelpersHelper]
  116. ;unnütze Berechnung damit MeasureBatteryLevelHelper getriggert wird
  117. Measure=Calc
  118. Formula=1
  119. OnUpdateAction=[!CommandMeasure MeasureBatteryLevelHelper "Execute 1"]
  120. UpdateDivider=120
  121.  
  122. [MeasureBatteryLevelHelper]
  123. ;wird nie automatisch ausgeführt
  124. Measure=Plugin
  125. Plugin=ActionTimer
  126. ActionList1=ActionOne | Wait 1000 | ActionTwo | ActionThree | ActionFour
  127. ActionOne=[!CommandMeasure "MeasureBatteryLevel" "Run"]
  128. ActionTwo=[!UnpauseMeasure "MeasureBatteryLevelLuaReadFile"]
  129. ActionThree=[!UpdateMeasure "MeasureBatteryLevelLuaReadFile"]
  130. ActionFour=[!PauseMeasure "MeasureBatteryLevelLuaReadFile"]
  131. ;ActionThree=[!UpdateMeter MeterBatteryLevel]
  132.  
  133. [MeasureBatteryLevelLuaReadFile
  134. ;wird nie automatisch ausgeführt da pausiert
  135. Measure=Script
  136. ScriptFile="#CURRENTPATH#LuaTextFile.lua"
  137. FileToRead="#CURRENTPATH#BatteryLevel.txt"
  138. Paused=1
  139.  
  140. [MeasureBatteryLevel]
  141. ; wird nie automatisch ausgeführt
  142. Measure=Plugin
  143. Plugin=RunCommand
  144. Program=#CURRENTPATH#BatteryLevel.exe
  145.  
  146. ; ----------------------------------
  147. ; STYLES are used to "centralize" options
  148. ; ----------------------------------
  149.  
  150. [styleTitle]
  151. StringAlign=Center
  152. StringCase=Upper
  153. StringStyle=Bold
  154. StringEffect=Shadow
  155. FontEffectColor=0,0,0,50
  156. FontColor=#colorText#
  157. FontFace=#fontName#
  158. FontSize=10
  159. AntiAlias=1
  160. ClipString=1
  161.  
  162. [styleLeftText]
  163. StringAlign=Left
  164. ; Meters using styleLeftText will be left-aligned.
  165. StringCase=None
  166. StringStyle=Bold
  167. StringEffect=Shadow
  168. FontEffectColor=0,0,0,20
  169. FontColor=#colorText#
  170. FontFace=#fontName#
  171. FontSize=#textSize#
  172. AntiAlias=1
  173. ClipString=1
  174.  
  175. [styleRightText]
  176. StringAlign=Right
  177. StringCase=None
  178. StringStyle=Bold
  179. StringEffect=Shadow
  180. FontEffectColor=0,0,0,20
  181. FontColor=#colorText#
  182. FontFace=#fontName#
  183. FontSize=#textSize#
  184. AntiAlias=1
  185. ClipString=1
  186.  
  187. [styleBar]
  188. BarColor=#colorBar#
  189. BarOrientation=HORIZONTAL
  190. SolidColor=255,255,255,15
  191.  
  192. ; ----------------------------------
  193. ; METERS display images, text, bars, etc.
  194. ; ----------------------------------
  195.  
  196. [meterTitle]
  197. Meter=String
  198. MeterStyle=styleTitle
  199. ; Using MeterStyle=styleTitle will basically "copy" the
  200. ; contents of the [styleTitle] section here during runtime.
  201. X=100
  202. Y=12
  203. W=190
  204. H=18
  205. Text=Disks
  206. ; Even though the text is set to Disks, Rainmeter will display
  207. ; it as DISKS, because styleTitle contains StringCase=Upper.
  208.  
  209. [meterLabelDisk1]
  210. Meter=String
  211. MeterStyle=styleLeftText
  212. X=10
  213. Y=40
  214. W=190
  215. H=14
  216. Text=#disk1#\
  217.  
  218. [meterValueDisk1]
  219. Meter=String
  220. MeterStyle=styleRightText
  221. MeasureName=measureUsedDisk1
  222. MeasureName2=measureTotalDisk1
  223. X=200
  224. Y=0r
  225. ; r stands for relative. In this case, the Y postition of meterValueCPU is 0 pixels
  226. ; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
  227. W=190
  228. H=14
  229. Text=%1B/%2B used
  230. ; %1 stands for the value of MeasureName (measureUsedDisk1 in this case).
  231. ; %2 stands for the value of MeasureName2.
  232. NumOfDecimals=1
  233. AutoScale=1
  234. ; Because disk measures return the free/used space in bytes, we must use AutoScale=1 to
  235. ; automatically scale the value into a more readable figure.
  236. ;LeftMouseUpAction=["#disk1#\"]
  237. ; Open #disk1# on click
  238.  
  239. [meterBarDisk1]
  240. Meter=Bar
  241. MeterStyle=styleBar
  242. MeasureName=measureUsedDisk1
  243. X=10
  244. Y=52
  245. W=190
  246. H=1
  247.  
  248. [meterLabelDisk2]
  249. Meter=String
  250. MeterStyle=styleLeftText
  251. X=10
  252. Y=60
  253. W=190
  254. H=14
  255. Text=#disk2#\
  256. ;LeftMouseUpAction=["#disk2#\"]
  257.  
  258. [meterValueDisk2]
  259. Meter=String
  260. MeterStyle=styleRightText
  261. MeasureName=measureUsedDisk2
  262. MeasureName2=measureTotalDisk2
  263. X=200
  264. Y=0r
  265. W=190
  266. H=14
  267. Text=%1B/%2B used
  268. NumOfDecimals=1
  269. AutoScale=1
  270.  
  271. [meterBarDisk2]
  272. Meter=Bar
  273. MeterStyle=styleBar
  274. MeasureName=measureUsedDisk2
  275. X=10
  276. Y=72
  277. W=190
  278. H=1
  279.  
  280. [meterLabelDisk3]
  281. Meter=String
  282. MeterStyle=styleLeftText
  283. X=10
  284. Y=80
  285. W=190
  286. H=14
  287. Text=#disk3#\
  288. ;LeftMouseUpAction=["#disk3#\"]
  289.  
  290. [meterValueDisk3]
  291. Meter=String
  292. MeterStyle=styleRightText
  293. MeasureName=measureUsedDisk3
  294. MeasureName2=measureTotalDisk3
  295. X=200
  296. Y=0r
  297. W=190
  298. H=14
  299. Text=%1B/%2B used
  300. NumOfDecimals=1
  301. AutoScale=1
  302.  
  303. [meterBarDisk3]
  304. Meter=Bar
  305. MeterStyle=styleBar
  306. MeasureName=measureUsedDisk3
  307. X=10
  308. Y=92
  309. W=190
  310. H=1
  311.  
  312. [meterLabelDownloadsFolder]
  313. Meter=String
  314. MeterStyle=styleLeftText
  315. X=10
  316. Y=100
  317. W=190
  318. H=14
  319. AutoScale=1
  320. Text="Downloads: "
  321.  
  322. [meterValueDownloadsFolderSize]
  323. Meter=String
  324. MeterStyle=styleRightText
  325. MeasureName=MeasureDownloadsFolderSize
  326. MeasureName2=MeasureDownloadsFolderCount
  327. X=200
  328. Y=0r
  329. W=120
  330. H=14
  331. AutoScale=1
  332. ClipString=2
  333. NumOfDecimals=1
  334. Text="%1B in %2 files"
  335.  
  336. [meterBatteryLevelText]
  337. Meter=String
  338. MeterStyle=styleLeftText
  339. X=10
  340. Y=120
  341. W=190
  342. H=14
  343. Text="Headset: "
  344.  
  345. [meterBatteryLevel]
  346. Meter=String
  347. MeterStyle=styleRightText
  348. MeasureName=MeasureBatteryLevelLuaReadFile
  349. Postfix=" %"
  350. X=200
  351. Y=0r
  352. W=190
  353. H=14
  354. NumOfDecimals=0
  355. AutoScale=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement