Advertisement
0utlawActual

CPU/Rainmeter

Apr 24th, 2020
468
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.00 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. [Rainmeter]
  6. ; This section contains general settings that can be used to change how Rainmeter behaves.
  7. Update=1000
  8. ; #@# is equal to Rainmeter\Skins\clearsky\@Resources
  9. #BackgroundMode=2
  10. #SolidColor=0,0,0,25
  11.  
  12. [Metadata]
  13. ; Contains basic information of the skin.
  14. Name=System
  15. Author=magroski
  16. Information=Displays basic system stats.
  17. License=Creative Commons BY-NC-SA 3.0
  18. Version=1.0.0
  19.  
  20. [Variables]
  21. ; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
  22. fontName=Trebuchet MS
  23. textSize=12
  24. colorBar=255, 255, 255
  25. colorText=255, 255, 255, 160
  26. colorMeterBg=255,255,255,25
  27. BarBack=255, 255, 255, 50
  28. AntiAlias=1
  29.  
  30. BarColor=255, 255, 255
  31. BarBack=255, 255, 255, 50
  32.  
  33. FontName=Trebuchet MS
  34. FontName2=Trebuchet MS
  35. FontColor=255, 255, 255, 160
  36. FontHeight=12
  37.  
  38. ; ----------------------------------
  39. ; MEASURES return some kind of value
  40. ; ----------------------------------
  41.  
  42. [measureCPU]
  43. ; This measure returns the average CPU load between all cores.
  44. Measure=CPU
  45. Processor=0
  46. MinValue=0
  47. MaxValue=100
  48.  
  49. #~ [measureRAM]
  50. #~ ; Returns the amount of RAM used in bytes.
  51. #~ Measure=PhysicalMemory
  52. #~ UpdateDivider=20
  53. #~ ; UpdateDivider sets the rate at which the value of the measure is updated. It is
  54. #~ ; calculated as follows: UpdateDivider x Update. In this case, Update is set to
  55. #~ ; 1000 milliseconds (in the [Rainmeter] section). 1000 x 20 = 20000 ms or 20 seconds.
  56.  
  57. #~ ; ----------------------------------
  58. #~ ; STYLES are used to "centralize" options
  59. #~ ; ----------------------------------
  60.  
  61. [styleTitle]
  62. StringAlign=Center
  63. StringCase=Upper
  64. FontEffectColor=255, 255, 255, 160
  65. FontColor=#colorText#
  66. FontFace=#fontName#
  67. FontSize=10
  68. AntiAlias=1
  69. ClipString=1
  70.  
  71. [styleLeftText]
  72. StringAlign=Left
  73. ; Meters using styleLeftText will be left-aligned.
  74. StringCase=None
  75. FontEffectColor=255, 255, 255, 160
  76. FontColor=#colorText#
  77. FontFace=#fontName#
  78. FontSize=#textSize#
  79. AntiAlias=1
  80. ClipString=1
  81.  
  82. [styleRightText]
  83. StringAlign=Right
  84. StringCase=None
  85. FontEffectColor=0,0,0,20
  86. FontColor=#colorText#
  87. FontFace=#fontName#
  88. FontSize=#textSize#
  89. AntiAlias=1
  90. ClipString=1
  91.  
  92. [styleBar]
  93. BarColor=#colorBar#
  94. BarOrientation=HORIZONTAL
  95. SolidColor=#colorMeterBg#
  96.  
  97. [styleLine]
  98. LineColor=#colorBar#
  99. LineWidth=2
  100. AntiAlias=1
  101. SolidColor=#colorMeterBg#
  102.  
  103. ; ----------------------------------
  104. ; METERS display images, text, bars, etc.
  105. ; ----------------------------------
  106.  
  107. [meterLabelCPU]
  108. Meter=STRING
  109. Text="CPU"
  110. X=7
  111. Y=5
  112. FontColor=#FontColor#
  113. FontSize=#FontHeight#
  114. FontFace=#FontName#
  115. AntiAlias=1
  116. LeftMouseUpAction=!Execute ["%windir%\system32\taskmgr.exe /7"]
  117.  
  118. [meterValueCPU]
  119. Meter=String
  120. MeterStyle=styleRightText
  121. MeasureName=measureCPU
  122. X=192
  123. Y=100
  124. ; r stands for relative. In this case, the Y position of meterValueCPU is 0 pixels
  125. ; below the Y value of the previous meter (i.e it's the same as in meterLabelCPU).
  126. W=180
  127. H=16
  128. Text=%1%
  129. ; %1 stands for the value of MeasureName (measureCPU in this case).
  130.  
  131. [meterLineCPU]
  132. Meter=Line
  133. MeterStyle=styleLine
  134. MeasureName=measureCPU
  135. X=10
  136. Y=30
  137. W=180
  138. H=60
  139.  
  140. [meterHistogramCPU]
  141. Meter=Histogram
  142. #PrimaryColor=24,216,240,65
  143. PrimaryColor=255,255,255,25
  144. AntiAlias=1
  145. MeasureName=measureCPU
  146. X=10
  147. Y=0r
  148. W=180
  149. H=60
  150.  
  151. [BarLine]
  152. Meter=IMAGE
  153. X=10
  154. Y=90
  155. W=180
  156. H=5
  157. SolidColor=#BarBack#
  158.  
  159.  
  160.  
  161. #~ [meterLabelRAM]
  162. #~ Meter=String
  163. #~ MeterStyle=styleLeftText
  164. #~ X=10
  165. #~ Y=70r
  166. #~ W=190
  167. #~ H=14
  168. #~ Text=RAM
  169.  
  170. #~ [meterValueRAM]
  171. #~ Meter=String
  172. #~ MeterStyle=styleRightText
  173. #~ MeasureName=measureRAM
  174. #~ X=200
  175. #~ Y=0r
  176. #~ W=190
  177. #~ H=14
  178. #~ Text=%1%
  179. #~ Percentual=1
  180. #~ ; Percentual=1 needs to be added her because measureRAM returns the amount
  181. #~ ; of RAM used in bytes. Using Percentual=1 will convert that into a percentual value.
  182.  
  183. #~ [meterBarRAM]
  184. #~ Meter=Bar
  185. #~ MeterStyle=styleBar
  186. #~ MeasureName=measureRAM
  187. #~ X=10
  188. #~ Y=18r
  189. #~ W=190
  190. #~ H=5
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement