Nodiaque

rainmeter skin

Dec 5th, 2024
321
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.37 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. Background=#@#Background.png
  9. BackgroundMode=3
  10. BackgroundMargins=0,34,0,14
  11. DynamicWindowSize=1
  12. Group=ASDF
  13. #OnUpdateAction=[!Refresh]
  14. OnRefreshAction=[!Move (#SCREENAREAWIDTH#-220) 0]
  15. #WindowX=(#SCREENAREAWIDTH#) -220
  16. #WindowY=100
  17.  
  18. [Metadata]
  19. ; Contains basic information of the skin.
  20. Name=InformationSysteme
  21. Author=ASDF
  22. Information=Affiche les informations de base de l'ordinateur
  23. License=ASDF
  24. Version=1.1.0
  25.  
  26. [Variables]
  27. ; Variables declared here can be used later on between two # characters (e.g. #MyVariable#).
  28. fontName=Trebuchet MS
  29. textSize=11
  30. colorBar=235,170,0,255
  31. colorText=255,255,255,205
  32. SecondInterface=1
  33. WifiPosition="25r"
  34. #VarWinVersion="banane"
  35.  
  36. ; ----------------------------------
  37. ; MEASURES return some kind of value
  38. ; ----------------------------------
  39.  
  40. [MeasureComputerName]
  41. Measure=SysInfo
  42. #Plugin=SysInfo
  43. SysInfoType=COMPUTER_NAME
  44.  
  45. [MeasureOS]
  46. Measure=SysInfo
  47. #Plugin=SysInfo
  48. SysInfoType=OS_VERSION
  49.  
  50. [MeasureDomain]
  51. Measure=SysInfo
  52. #Plugin=SysInfo
  53. SysInfoType=DOMAIN_NAME
  54.  
  55.  
  56. [MeasureWindowsDisplayVersion]
  57. Measure=Registry
  58. RegHKey=HKEY_LOCAL_MACHINE
  59. RegKey=Software\Microsoft\Windows NT\CurrentVersion
  60. RegValue=DisplayVersion
  61. UpdateDivider=-1
  62. IfMatch=\w+
  63. IfMatchAction=[!SetOption meterLabelOS Text "[MeasureOS] [MeasureWindowsDisplayVersion]"]
  64. #IfNotMatchAction=[!SetOption meterLabelOS Text "[MeasureOS] [MeasureWindowsVersion]"]
  65.  
  66.  
  67. [MeasureWindowsVersion]
  68. Measure=Registry
  69. RegHKey=HKEY_LOCAL_MACHINE
  70. RegKey=Software\Microsoft\Windows NT\CurrentVersion
  71. RegValue=ReleaseId
  72. UpdateDivider=-1
  73.  
  74.  
  75.  
  76. [MeasureASDFProfile]
  77. Measure=Registry
  78. RegHKey=HKEY_LOCAL_MACHINE
  79. RegKey=Software\ASDF\OSD
  80. RegValue=Profile
  81. UpdateDivider=-1
  82. #IfCondition=([MeasureASDFProfile] = 0)
  83. #IfTrueAction=[!SetOption meterLabelProfile Y 0r][!SetOptionGroup "Profile" Hidden 1]
  84. #IfFalseAction=[!SetOption meterLabelProfile Y 25r][!SetOptionGroup "Profile" Hidden 0]
  85. #ifMatch=0
  86. #IfNotMatchAction=[!SetOption meterLabelProfile Y 25r][!SetOptionGroup "Profile" Hidden 0]
  87. #IfMatchAction=[!SetOption meterLabelProfile Y 0r][!SetOptionGroup "Profile" Hidden 1]
  88. DynamicVariables=1
  89.  
  90. [MeasureASDFRole]
  91. Measure=Registry
  92. RegHKey=HKEY_LOCAL_MACHINE
  93. RegKey=Software\ASDF\OSD
  94. RegValue=Role
  95. UpdateDivider=-1
  96. #IfCondition=MeasureASDFProfile > 0
  97. #IfTrueAction=[!ShowMeterGroup "Profile"][!HideMeterGroup "Role"]
  98. #IfCondition2=(MeasureASDFProfile = 0 ) && (MeasureASDFRole > 0)
  99. #IfTrueAction2=[!ShowMeterGroup "Role"][!HideMeterGroup "Profile"]
  100. #IfCondition3=(MeasureASDFProfile = 0 ) && (MeasureASDFRole = 0)
  101. #IfTrueAction3=[!HideMeterGroup "Profile"][!HideMeterGroup "Role"]
  102. #IfCondition=([MeasureASDFProfile] <> 0)
  103. #IfTrueAction=[!SetOption meterLabelRole Y 0r][!SetOptionGroup "Role" Hidden 1]
  104. #IfCondition2=([MeasureASDFRole] = 0) && ([MeasureASDFProfile] <> 0)
  105. #IfFalseAction=[!SetOption meterLabelRole Y 25r][!SetOptionGroup "Role" Hidden 0]
  106. DynamicVariables=1
  107.  
  108. [MeasureASDFProfileRole]
  109. Measure=String
  110. String=[MeasureASDFProfile];[MeasureASDFRole]
  111. RegExpSubstitute=1
  112. Substitute="^0;0$":";","(.+);0$":"\1;","^0;(.+)":";\1"
  113. IfMatch=.+;
  114. IfMatchAction=[!ShowMeterGroup "Profile"][!HideMeterGroup "Role"][!SetOption meterLabelProfile Y 25r][!SetOption meterLabelRole Y 0r]
  115. IfMatch2=^;.+
  116. IfMatchAction2=[!ShowMeterGroup "Role"][!HideMeterGroup "Profile"][!SetOption meterLabelProfile Y 0r][!SetOption meterLabelRole Y 25r]
  117. IfMatch3=^;$
  118. IfMatchAction3=[!HideMeterGroup "Profile"][!HideMeterGroup "Role"][!SetOption meterLabelProfile Y 0r][!SetOption meterLabelRole Y 0r]
  119. DynamicVariables=1
  120.  
  121. [MeasureIP1]
  122. Measure=SysInfo
  123. #Plugin=SysInfo
  124. Group=IPInfo
  125. SysInfoType=IP_ADDRESS
  126. SysInfoData=0
  127. DynamicVariables=1
  128. IfMatch=^127.0.0.1$|^0.0.0.0$
  129. IfMatchAction=[!SetOption meterValueIP1Off Hidden 0][!SetOption meterValueIP1 Hidden 1][!UpdateMeasureGroup IPInfo]
  130. IfNotMatchAction=[!SetOption meterValueIP1Off Hidden 1][!SetOption meterValueIP1 Hidden 0][!UpdateMeasureGroup IPInfo]
  131. ;IfMatchAction=[!ToggleMeter "meterLabelIP1"][!ToggleMeter "meterValueIP1"][!UpdateMeasureGroup IPInfo]
  132.  
  133. [MeasureIP2]
  134. Measure=SysInfo
  135. #Plugin=SysInfo
  136. Group=IPInfo
  137. SysInfoType=IP_ADDRESS
  138. SysInfoData=#SecondInterface#
  139. DynamicVariables=1
  140. IfCondition=#SecondInterface# > 5
  141. IfTrueAction=[!SetVariable SecondInterface 1][!UpdateMeasureGroup IPInfo]
  142. IfMatch=^127.0.0.1$|^0.0.0.0$|^$
  143. IfMatchAction=[!SetVariable SecondInterface (#SecondInterface#+1)][!SetOptionGroup "IP2" Hidden 1][!SetOption meterLabelIP2 Y 0][!SetOption meterLabelWiFi Y "60r"]
  144. IfNotMatchAction=[!SetOptionGroup "IP2" Hidden 0][!SetOption meterLabelIP2 Y 25r][!SetOption meterLabelWiFi Y "25r"]
  145. IfMatchMode=1
  146. ;IfCondition=#SecondInterface# > 10
  147. ;IfTrueAction=[!SetOptionGroup "IP2" Hidden 1][!SetOption meterLabelIP2 Y 0][!SetOption meterLabelWiFi Y "60r"][!UpdateMeasureGroup IPInfo]
  148. ;IfFalseAction=[!SetOptionGroup "IP2" Hidden 0][!SetOption meterLabelIP2 Y 25r][!SetOption meterLabelWiFi Y "25r"][!UpdateMeasureGroup IPInfo]
  149. ;IfMatch1=^$
  150. ;IfMatchAction=[!SetOptionGroup "IP2" Hidden 1][!SetOption meterLabelIP2 Y 0][!SetOption meterLabelWiFi Y "60r"][!UpdateMeasureGroup IPInfo]
  151. ;IfNotMatchAction=[!SetOptionGroup "IP2" Hidden 0][!SetOption meterLabelIP2 Y 25r][!SetOption meterLabelWiFi Y "25r"][!UpdateMeasureGroup IPInfo]
  152. ;IfMatchAction=[!SetOption meterLabelIP2 Hidden 1][!SetOption meterValueIP2 Hidden 1][!UpdateMeasureGroup IPInfo]
  153. ;IfNotMatchAction=[!SetOption meterLabelIP2 Hidden 0][!SetOption meterValueIP2 Hidden 0][!UpdateMeasureGroup IPInfo]
  154. ;IfMatchAction=[!ToggleMeter "meterLabelIP2"][!ToggleMeter "meterValueIP2"][!UpdateMeasureGroup IPInfo]
  155.  
  156. [MeasureSSID]
  157. Measure=Plugin
  158. Group=WiFi
  159. Plugin=WiFiStatus
  160. WiFiInfoType=SSID
  161. WiFiIntfID=0
  162. DynamicVariables=1
  163. IfMatch=^$
  164. IfNotMatchAction=[!SetVariable SecondInterface 1][!UpdateMeasureGroup IPInfo][!UpdateMeasureGroup WiFi]
  165.  
  166. [MeasureWifiSignal]
  167. Measure=Plugin
  168. Group=WiFi
  169. Plugin=WiFiStatus
  170. WiFiInfoType=Quality
  171. WiFiIntfID=0
  172. DynamicVariables=1
  173. IfBelowValue=1
  174. IfBelowAction=[!SetOptionGroup "WiFi" Hidden 1][!SetVariable SecondInterface 1][!UpdateMeasureGroup IPInfo][!UpdateMeasureGroup WiFi]
  175. IfAboveAction=[!SetOptionGroup "WiFi" Hidden 0][!SetVariable SecondInterface 1][!UpdateMeasureGroup IPInfo][!UpdateMeasureGroup WiFi]
  176.  
  177. [MeasureFreeDiskSpace]
  178. Measure=FreeDiskSpace
  179. Group=LowDiskSpace
  180. Drive=C:
  181. UpdateDivider=5
  182.  
  183. [MeasureTotalDiskSpace]
  184. Measure=FreeDiskSpace
  185. Drive=C:
  186. Total=1
  187. UpdateDivider=5
  188.  
  189. [MeasureFreeDiskSpace2]
  190. Measure=FreeDiskSpace
  191. Drive=C:
  192. UpdateDivider=5
  193. IfCondition=(MeasureFreeDiskSpace / MeasureTotalDiskSpace)*100 < 11
  194. IfTrueAction=[!SetOption meterLabelLowDiskSpace Y 25r][!SetOptionGroup "LowDiskSpace" Hidden 0][!UpdateMeasureGroup LowDiskSpace]
  195. IfFalseAction=[!SetOption meterLabelLowDiskSpace Y 0r][!SetOptionGroup "LowDiskSpace" Hidden 1][!UpdateMeasureGroup LowDiskSpace]
  196.  
  197. [MeasureUptime]
  198. Measure=Uptime
  199. Format="%4!i! jours %3!i!h%2!02i!"
  200.  
  201. [MeasureBatteryLevel]
  202. Measure=Plugin
  203. PlugIn=PowerPlugin
  204. PowerState=Percent
  205. UpdateDivider=8
  206. MaxValue=100
  207. MinValue=0
  208. OnChangeAction=[!UpdateMeter MeterValueBattery]
  209.  
  210. [MeasureBattStatusValue]
  211. Measure=Plugin
  212. PlugIn=PowerPlugin
  213. PowerState=Status
  214. IfCondition=MeasureBattStatusValue <> 0
  215. IfTrueAction=[!SetOption MeterLabelBattery Y 25r][!SetOptionGroup "BattInfo" Hidden 0][!UpdateMeasureGroup BattInfo]
  216. IfFalseAction=[!SetOption MeterLabelBattery Y 0r][!SetOptionGroup "BattInfo" Hidden 1][!UpdateMeasureGroup BattInfo]
  217.  
  218. [MeasureACLineValue]
  219. Measure=Plugin
  220. PlugIn=PowerPlugin
  221. PowerState=ACLine
  222. Substitute="0":"Sur batterie","1":"Sur secteur"
  223.  
  224. [MeasureManufacturer]
  225. Measure=Registry
  226. RegHKey=HKEY_LOCAL_MACHINE
  227. RegKey=HARDWARE\DESCRIPTION\System\BIOS
  228. RegValue=SystemManufacturer
  229. UpdateDivider=-1
  230.  
  231. [MeasureModel]
  232. Measure=Registry
  233. RegHKey=HKEY_LOCAL_MACHINE
  234. RegKey=HARDWARE\DESCRIPTION\System\BIOS
  235. RegValue=SystemProductName
  236. UpdateDivider=-1
  237.  
  238. ; ----------------------------------
  239. ; STYLES are used to "centralize" options
  240. ; ----------------------------------
  241.  
  242. [styleTitle]
  243. StringAlign=Center
  244. StringCase=Upper
  245. StringStyle=Bold
  246. StringEffect=Shadow
  247. FontEffectColor=0,0,0,50
  248. FontColor=#colorText#
  249. FontFace=#fontName#
  250. FontSize=#textSize#
  251. AntiAlias=1
  252. ClipString=1
  253.  
  254. [styleLeftText]
  255. StringAlign=Left
  256. ; Meters using styleLeftText will be left-aligned.
  257. StringCase=None
  258. StringStyle=Bold
  259. StringEffect=Shadow
  260. FontEffectColor=0,0,0,20
  261. FontColor=#colorText#
  262. FontFace=#fontName#
  263. FontSize=#textSize#
  264. AntiAlias=1
  265. ClipString=1
  266.  
  267. [styleRightText]
  268. StringAlign=Right
  269. StringCase=None
  270. StringStyle=Bold
  271. StringEffect=Shadow
  272. FontEffectColor=0,0,0,20
  273. FontColor=#colorText#
  274. FontFace=#fontName#
  275. FontSize=#textSize#
  276. AntiAlias=1
  277. ClipString=1
  278.  
  279. [styleLeftTextWarning]
  280. StringAlign=Left
  281. StringCase=None
  282. StringStyle=Bold
  283. StringEffect=Shadow
  284. FontEffectColor=0,0,0,20
  285. FontColor=255,0,0,205
  286. FontFace=#fontName#
  287. FontSize=#textSize#
  288. AntiAlias=1
  289. ClipString=1
  290.  
  291. [styleRightTextWarning]
  292. StringAlign=Right
  293. StringCase=None
  294. StringStyle=Bold
  295. StringEffect=Shadow
  296. FontEffectColor=0,0,0,20
  297. FontColor=255,0,0,205
  298. FontFace=#fontName#
  299. FontSize=#textSize#
  300. AntiAlias=1
  301. ClipString=1
  302.  
  303. [styleCenterText]
  304. StringAlign=Center
  305. StringCase=None
  306. StringStyle=Bold
  307. StringEffect=Shadow
  308. FontEffectColor=0,0,0,20
  309. FontColor=#colorText#
  310. FontFace=#fontName#
  311. FontSize=#textSize#
  312. AntiAlias=1
  313. ClipString=1
  314.  
  315. [styleBar]
  316. BarColor=#colorBar#
  317. BarOrientation=HORIZONTAL
  318. SolidColor=255,255,255,15
  319.  
  320. ; ----------------------------------
  321. ; METERS display images, text, bars, etc.
  322. ; ----------------------------------
  323.  
  324. [meterTitle]
  325. Meter=String
  326. MeterStyle=styleTitle
  327. MeasureName=MeasureComputerName
  328. ; Using MeterStyle=styleTitle will basically "copy" the
  329. ; contents of the [styleTitle] section here during runtime.
  330. X=100
  331. Y=12
  332. W=190
  333. H=20
  334. Text=%1
  335. ; Even though the text is set to System, Rainmeter will display
  336. ; it as SYSTEM, because styleTitle contains StringCase=Upper.
  337. LeftMouseUpAction=["taskmgr.exe"]
  338. ; Left-clicking this meter will launch taskmgr.exe (the Task Manager).
  339. ToolTipText=Ouvrir Gestionnaire de tâche
  340. ; Hovering over this meter will display a tooltip with the text above.
  341.  
  342. [meterLabelOS]
  343. Meter=String
  344. MeterStyle=styleLeftText
  345. MeasureName=MeasureWindowsVersion
  346. MeasureName2=MeasureOS
  347. X=10
  348. Y=25r
  349. W=190
  350. H=20
  351. Text=%2 %1
  352.  
  353. [meterLabelProfile]
  354. Meter=String
  355. Group=Profile
  356. MeasureName=MeasureASDFProfile
  357. MeterStyle=styleLeftText
  358. X=10
  359. Y=25r
  360. ;W=190
  361. ;H=20
  362. Text=%1
  363. Hidden=0
  364.  
  365. [meterLabelRole]
  366. Meter=String
  367. Group=Role
  368. MeasureName=MeasureASDFRole
  369. MeterStyle=styleLeftText
  370. X=10
  371. Y=25r
  372. ;W=190
  373. ;H=20
  374. Text=%1
  375. Hidden=0
  376.  
  377. [meterValueModel]
  378. Meter=String
  379. Group=Model
  380. MeasureName=MeasureModel
  381. MeterStyle=styleLeftText
  382. X=10
  383. Y=25r
  384. ;W=190
  385. ;H=20
  386. Text=%1
  387. Hidden=0
  388.  
  389. [meterLabelLowDiskSpace]
  390. Meter=String
  391. Group=LowDiskSpace
  392. MeterStyle=styleLeftTextWarning
  393. X=10
  394. Y=25r
  395. ;W=190
  396. ;H=20
  397. Percentual=1
  398. Text=Espace libre faible
  399. Hidden=0
  400.  
  401. [meterValueLowDiskSpace]
  402. Meter=String
  403. Group=LowDiskSpace
  404. MeterStyle=styleRightTextWarning
  405. MeasureName=MeasureFreeDiskSpace
  406. X=200
  407. Y=0r
  408. ;W=190
  409. ;H=20
  410. Percentual=1
  411. Text=%1%
  412. Hidden=0
  413.  
  414. [MeterLabelDomain]
  415. Meter=String
  416. Group=Domain
  417. X=10
  418. Y=25r
  419. MeterStyle=styleLeftText
  420. Text="Domaine"
  421.  
  422. [MeterValueDomain]
  423. Meter=String
  424. MeasureName=MeasureDomain
  425. MeterStyle=styleRightText
  426. X=200
  427. Y=0r
  428. Text=%1
  429.  
  430. [MeterLabelUptime]
  431. Meter=String
  432. Group=Uptime
  433. X=10
  434. Y=25r
  435. MeterStyle=styleLeftText
  436. Text="Uptime"
  437.  
  438. [MeterValueUptime]
  439. Meter=String
  440. MeasureName=MeasureUptime
  441. MeterStyle=styleRightText
  442. X=200
  443. Y=0r
  444. Text=%1
  445.  
  446. [MeterLabelACLine]
  447. Meter=STRING
  448. MeterStyle=styleLeftText
  449. X=10
  450. Y=25r
  451. Text="Alimentation"
  452.  
  453. [MeterValueACLine]
  454. Meter=STRING
  455. X=200
  456. Y=0r
  457. MeasureName=MeasureACLineValue
  458. MeterStyle=styleRightText
  459. Text=%1
  460.  
  461. [MeterLabelBattery]
  462. Meter=STRING
  463. MeterStyle=styleLeftText
  464. Group=BattInfo
  465. X=10
  466. Y=25r
  467. Text="Batterie"
  468. Hidden=1
  469.  
  470. [MeterValueBattery]
  471. Meter=STRING
  472. X=200
  473. Y=0r
  474. Group=BattInfo
  475. MeasureName=MeasureBatteryLevel
  476. MeterStyle=styleRightText
  477. Text=%1%
  478. Hidden=1
  479.  
  480.  
  481.  
  482. #[MeterLabelBatteryStatus]
  483. #Meter=STRING
  484. #MeterStyle=styleLeftText
  485. #Group=BattInfo
  486. #X=10
  487. #Y=25r
  488. #Text="Batterie Status"
  489. #Hidden=1
  490.  
  491. #[MeterValueBatteryStatus]
  492. #Meter=STRING
  493. #X=200
  494. #Y=0r
  495. #Group=BattInfo
  496. #MeasureName=MeasureBattStatusValue
  497. #MeterStyle=styleRightText
  498. #Text=%1
  499. #Hidden=1
  500.  
  501. [meterLabelIP1]
  502. Meter=String
  503. Group=IPInfo
  504. MeterStyle=styleLeftText
  505. X=10
  506. Y=25r
  507. ;W=190
  508. ;H=20
  509. Text=IP
  510. Hidden=0
  511.  
  512. [meterValueIP1]
  513. Meter=String
  514. Group=IPInfo
  515. MeterStyle=styleRightText
  516. MeasureName=measureIP1
  517. X=200
  518. Y=0r
  519. ;W=190
  520. ;H=20
  521. Hidden=0
  522.  
  523. [meterValueIP1Off]
  524. Meter=String
  525. Group=IPInfo
  526. MeterStyle=styleRightText
  527. Text="Non connecté"
  528. X=200
  529. Y=0r
  530. ;W=190
  531. ;H=20
  532. Hidden=1
  533.  
  534. [meterLabelIP2]
  535. Meter=String
  536. Group=IPInfo | IP2
  537. MeterStyle=styleLeftText
  538. X=10
  539. Y=25r
  540. ;W=190
  541. ;H=20
  542. Text=IP
  543. Hidden=0
  544.  
  545. [meterValueIP2]
  546. Meter=String
  547. Group=IPInfo | IP2
  548. MeterStyle=styleRightText
  549. MeasureName=measureIP2
  550. X=200
  551. Y=0r
  552. ;W=190
  553. ;H=20
  554. Hidden=0
  555.  
  556. [meterLabelWiFi]
  557. Meter=String
  558. Group=WiFi
  559. MeterStyle=styleLeftText
  560. X=10
  561. Y=25r
  562. ;W=190
  563. ;H=20
  564. Text="WiFi"
  565. Hidden=0
  566.  
  567. [meterValueWiFi]
  568. Meter=String
  569. Group=WiFi
  570. MeterStyle=styleRightText
  571. MeasureName=MeasureSSID
  572. X=200
  573. Y=0r
  574. ;W=190
  575. ;H=20
  576. Hidden=0
  577.  
  578. [meterValueWiFiSignalBar]
  579. Meter=Bar
  580. Group=WiFi
  581. MeterStyle=styleBar
  582. MeasureName=MeasureWifiSignal
  583. X=10
  584. Y=R
  585. W=190
  586. H=1
  587. Hidden=0
  588.  
  589.  
Advertisement
Add Comment
Please, Sign In to add comment