SHARE
TWEET

Battery

Corvust Nov 16th, 2018 (edited) 141 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Rainmeter]
  2. AccurateText=1
  3. DefaultUpdateDivider=-1
  4.  
  5. [Variables]
  6. Size=120
  7. SkinHeight=#Size#
  8. SkinWidth=(80*#Size#/30)
  9.  
  10. Pink=254,199,205
  11. White=255,255,255
  12. Grey=64,64,64
  13.  
  14. Font=Roboto Mono
  15.  
  16. [M_Battery_Percentage]
  17. Measure=Plugin
  18. Plugin=PowerPlugin
  19. PowerState=Percent
  20. UpdateDivider=10
  21. OnChangeAction=[!UpdateMeter Battery_Display]
  22.  
  23. [Background]
  24. Meter=Shape
  25. Shape=Rectangle 0,0,#SkinWidth#,#SkinHeight# | StrokeWidth 0 | Fill Color #Pink#
  26. Shape2=Rectangle (2*#Size#/60),(2*#Size#/60),(#SkinWidth#-(4*#Size#/60)),(#SkinHeight#-(4*#Size#/60)) | StrokeWidth 0 | Fill Color #White#
  27.  
  28. [Battery_Icon]
  29. MeterStyle=Style_RightTaskbarIcon
  30. Meter=Shape
  31. x=#SkinWidth#*0.15
  32.     Shape=Rectangle (#Size#*0.15),(#Size#*0.34),(#Size#*0.65),(#Size#*0.32) | StrokeWidth 0 | Extend FillColour
  33.     Shape2=Rectangle (#Size#*0.20),(#Size#*0.39),(#Size#*0.55),(#Size#*0.22)
  34.     Shape3=Rectangle (#Size#*0.80),(#Size#*0.44),(#Size#*0.05),(#Size#*0.12)
  35.     Shape4=Rectangle (#Size#*0.23),(#Size#*0.42),(#Size#*0.49*[M_Battery_Percentage]*0.01),(#Size#*0.16) | StrokeWidth 0 | Extend FillColour
  36.     Shape5=Rectangle (#Size#*0.815),(#Size#*0.475),(-#Size#*0.10),(#Size#*0.05)
  37.     Shape6=Combine Shape | Union Shape3 | Exclude Shape2 | Exclude Shape5
  38.         FillColour=Fill Color #Pink#
  39. DynamicVariables=1
  40.  
  41. [Battery_Display]
  42. Meter=String
  43. MeasureName=M_Battery_Percentage
  44. x=(#SkinWidth#*0.55)
  45. y=(#SkinHeight#*0.50)
  46. h=(#Size#*0.32)
  47. Text=%1%
  48. FontFace=#Font#
  49. FontColor=#Grey#
  50. FontSize=(0.27*#Size#)
  51. StringAlign=LeftCenter
  52. DynamicVariables=1
  53. AntiAlias=1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top