Advertisement
Scullvine

Rainmeter Skin WebNowPlaying Workaround V2

Aug 8th, 2018
5,921
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Rainmeter]
  2. Group=SysDash | Media
  3. Update=1
  4. AccurateText=1
  5. BackgroundMode=2
  6. SolidColor=0,0,0,1
  7.  
  8. ; = IMPORTANT =
  9. ; = For configuring the rainmeter skin, right-click the visualizer and click on "Open settings".
  10. ; = You can also open the variables.ini file located in:
  11. ; = "My Documents\Rainmeter\Skins\SysDash\@Resources"
  12.  
  13. ; Small context menu when you right-click the skin
  14. ContextTitle=" Open settings"
  15. ContextAction=[!ActivateConfig "#ROOTCONFIG#\Settings" "general.ini"]
  16. ContextTitle2=" Open variables file"
  17. ContextAction2=["#@#variables.ini"]
  18.  
  19. [Metadata]
  20. Name=SysDash Dashboard
  21. Author=marcopixel
  22. License=MIT License
  23. Information=An minimalistic, still stylish dashboard-like skin with modular components.
  24.  
  25. [Variables]
  26. ; Includes the variables used for the skin.
  27. @include=#@#variables.ini
  28.  
  29. ; Include media player and styling measures.
  30. @include2=#@#include\Measure#MPMode#.inc
  31.  
  32. ;------------------------------------Measures----------------------------------------------------------------------------------
  33.  
  34. ; Measure to set the correct media player mode
  35. [MeasureSetMediaPlayer]
  36.  Measure=String
  37.  String=#PlayerName#
  38.  IfMatch=Spotify
  39.  IfMatchAction=[!WriteKeyValue Variables MPMode Spotify "#@#variables.ini"][!SetVariable MPMode Spotify][!Update]
  40.  IfMatch2=GPMDP
  41.  IfMatchAction2=[!WriteKeyValue Variables MPMode GPMDP "#@#variables.ini"][!SetVariable MPMode GPMDP][!Update]
  42.  IfNotMatchAction=[!WriteKeyValue Variables MPMode NowPlaying "#@#variables.ini"][!SetVariable MPMode NowPlaying][!Update]
  43.  UpdateDivider=1
  44.  
  45.  
  46. ;----------------------------------------------------------------------------------------------------------------------
  47. ;    Measures for NowPlaying added 7/28/2018 Original Code Author: Milan http://madmilov2.deviantart.com/ adapted and edited by Reddit User Scullvine
  48. ;----------------------------------------------------------------------------------------------------------------------
  49.  
  50. [MeasurePlayer]
  51.  Measure=Plugin
  52.  Plugin=NowPlaying.dll
  53.  PlayerName=#player#
  54.  Substitute="":""
  55.  
  56. [MeasureArtist]
  57.  Measure=Plugin
  58.  Plugin=WebNowPlaying.dll
  59.  Type=Artist
  60.  UpdateDivider=100
  61.  PlayerName=#Player#
  62.  PlayerType=ARTIST
  63.  Substitute="":""
  64.  
  65. ;[MeasureAlbum]
  66. ; Measure=Plugin
  67. ; Plugin=WebNowPlaying.dll
  68. ; PlayerType=Album
  69. ; UpdateDivider = 5
  70. ;PlayerName=#player#
  71. [MeasureAlbum]
  72.  
  73. Measure=Plugin
  74.  
  75. Plugin=WebNowPlaying
  76.  
  77. PlayerType=Album
  78.  
  79. UpdateDivider = 5
  80.  
  81. Substitute="":"N/A"
  82.  
  83. [MeasureTitle]
  84.  Measure=Plugin
  85.  Plugin=WebNowPlaying.dll
  86.  Type=Title
  87.  UpdateDivider=100
  88.  PlayerName=#player#
  89.  PlayerType=TITLE
  90.  PlayerPath=
  91.  Substitue="":""
  92.  
  93. [MeasureCover]
  94.  Measure=Plugin
  95.  Plugin=WebNowPlaying.dll
  96.  Type=Cover
  97.  Res=300
  98.  PlayerName=[MeasurePlayer]
  99.  PlayerType=Cover
  100.  DefaultPath=#@#Images\nocover.png
  101.  CoverPath=#@#Images\cover.png
  102.  UpdateDivider = 5
  103.  
  104.  
  105. ;Song position in MM:SS
  106. [MeasurePosition]
  107.  Measure=Plugin
  108.  Plugin=WebNowPlaying
  109.  PlayerType=Position
  110.  UpdateDivider = 5
  111.  Substitute="":"N/A"
  112.  
  113. ;Song duration in MM:SS
  114. [MeasureDuration]
  115.  Measure=Plugin
  116.  Plugin=WebNowPlaying
  117.  PlayerType=Duration
  118.  UpdateDivider = 5
  119.  Substitute="":"N/A"
  120.  
  121. ;The play state of the player
  122. ;0 is no song is selected, this will almost never happen as the plugin retains the last known song in the future I may change it so it clears when the websocket closes but I dont think I want to do that in the event the websocket closes unexpectedly you may want it to keep old data
  123. ;1 is playing
  124. ;2 is paused
  125. [MeasureState]
  126.  Measure=Plugin
  127.  Plugin=WebNowPlaying
  128.  PlayerType=State
  129.  Substitute="0":"Play","1":"Pause","2":"Play","3":"Replay"
  130.  
  131. ;This is what percent of the way through the song you are
  132. [MeasureProgress]
  133.  Measure=Plugin
  134.  Plugin=WebNowPlaying
  135.  PlayerType=Progress
  136.  Substitute="":"N/A"
  137.  
  138. ;------------------------------------------------------------------------------------------------------------------------------
  139.  
  140. ; Script Refresher - refreshes the code to apply the changes from the SetMediaPlayer measure
  141. [ScriptRefresher]
  142.  Measure=Script
  143.  ScriptFile=#@#scripts\Refresher.lua
  144.  UpdateDivider=-1
  145.  Refreshed=0
  146.  
  147. ;------------------------------------Meters------------------------------------------------------------------------------------
  148.  
  149. [MeterNoCover]
  150.  Meter=Image
  151.  ImageName=#@#images\nocover.png
  152.  X=[MeterCover:X]
  153.  Y=[MeterCover:Y]
  154.  W=[MeterCover:W]
  155.  H=[MeterCover:H]
  156.  UpdateDivider=1
  157.  MouseOverAction=[!ShowMeterGroup "MediaControls"]
  158.  MouseLeaveAction=[!HideMeterGroup "MediaControls"]
  159.  ImageTint=#MainColor#
  160.  
  161. [MeterCover]
  162.  Meter=Image
  163.  MeasureName=MeasureCover
  164.  X=(#Width#/8)
  165.  Y=30
  166.  W=75
  167.  H=75
  168.  UpdateDivider=100
  169.  MouseOverAction=[!ShowMeterGroup "MediaControls"]
  170.  MouseLeaveAction=[!HideMeterGroup "MediaControls"]
  171.  
  172. [MeterTitle]
  173.  Meter=String
  174.  MeasureName=MeasureTitle
  175.  X=15R
  176.  Y=7r
  177.  W=(#Width#-(2*(#Width#/8)))-90
  178.  FontSize=12
  179.  FontColor=#FontColor#,235
  180.  InlineSetting=Face | Uni Neue
  181.  InlineSetting2=Weight | 100
  182.  AntiAlias=1
  183.  ClipString=1
  184.  Text="%1"
  185.  
  186. [MeterArtist]
  187.  Meter=String
  188.  MeasureName=MeasureArtist
  189.  X=0r
  190.  Y=0R
  191.  W=(#Width#-(2*(#Width#/8)))-90
  192.  FontSize=12
  193.  FontColor=#FontColor#,150
  194.  InlineSetting=Face | Uni Neue
  195.  InlineSetting2=Weight | 100
  196.  InlineSetting3=Color | #FontColor#,235
  197.  InlinePattern3=CPU
  198.  AntiAlias=1
  199.  ClipString=1
  200.  Text="%1"
  201.  
  202. ;[MeterAlbum]
  203. ;Meter=String
  204. ;MeasureName=MeasureAlbum
  205. ;X=0r
  206. ;Y=0R
  207. ;W=(#Width#-(2*(#Width#/8)))-90
  208. ;FontSize=12
  209. ;FontColor=#FontColor#,150
  210. ;InlineSetting=Face | Uni Neue
  211. ;InlineSetting2=Weight | 100
  212. ;InlineSetting3=Color | #FontColor#,235
  213. ;InlinePattern3=CPU
  214. ;AntiAlias=1
  215. ;ClipString=1
  216. ;Text="%1"
  217.  
  218. [MeterMyPosition]
  219.  Meter=String
  220.  MeasureName=MeasurePosition
  221.  MeasureName2=MeasureDuration
  222.  X=0r
  223.  Y=0R
  224.  W=(#Width#-(2*(#Width#/8)))-90
  225.  FontSize=12
  226.  FontColor=#FontColor#,150
  227.  InlineSetting=Face | Uni Neue
  228.  InlineSetting2=Weight | 100
  229.  InlineSetting3=Color | #FontColor#,235
  230.  InlinePattern3=CPU
  231.  AntiAlias=1
  232.  ClipString=1
  233.  Text=%1/%2
  234.  
  235. [MeterControlsBG]
  236.  Meter=Image
  237.  Group=MediaControls
  238.  X=[MeterCover:X]
  239.  Y=[MeterCover:Y]
  240.  W=75
  241.  H=75
  242.  SolidColor=0,0,0,175
  243.  MouseOverAction=[!ShowMeterGroup "MediaControls"]
  244.  MouseLeaveAction=[!HideMeterGroup "MediaControls"]
  245.  Hidden=1
  246.  
  247. [MeterControlsPlayPause]
  248.  Meter=Image
  249.  Group=MediaControls
  250.  X=([MeterCover:X]+20)
  251.  Y=([MeterCover:Y]+20)
  252.  W=35
  253.  H=35
  254.  LeftMouseUpAction=[!CommandMeasure MeasureState "PlayPause"]
  255.  ImageName=#@#images\[MeasureState].png
  256.  DynamicVariables=1
  257.  MouseOverAction=[!ShowMeterGroup "MediaControls"]
  258.  Hidden=1
  259.  ImageTint=#MainColor#
  260.  
  261. [MeterRewind]
  262.  Meter=Image
  263.  ImageName=#@#images\rewind.png
  264.  X=([MeterCover:X])
  265.  Y=([MeterCover:X]+90)
  266.  W=20
  267.  H=20
  268.  LeftMouseUpAction=[!CommandMeasure MeasureState "Previous"]
  269.  AntiAlias=1
  270.  ImageTint=#MainColor#
  271.  
  272. [MeterNext]
  273.  Meter=Image
  274.  ImageName=#@#images\fast-forward.png
  275.  X=([MeterCover:X]+50)
  276.  Y=([MeterCover:X]+90)
  277.  W=20
  278.  H=20
  279.  LeftMouseUpAction=[!CommandMeasure MeasureState "Next"]
  280.  AntiAlias=1
  281.  ImageTint=#MainColor#
  282.  
  283. [MeterNewPlayPause]
  284.  Meter=Image
  285. ;Group=MediaControls
  286.  X=([MeterCover:X]+25)
  287.  Y=([MeterCover:Y]+94)
  288.  W=20
  289.  H=20
  290.  LeftMouseUpAction=[!CommandMeasure MeasureState "PlayPause"]
  291.  ImageName=#@#images\[MeasureState].png
  292.  DynamicVariables=1
  293. ;MouseOverAction=[!ShowMeterGroup "MediaControls"]
  294.  Hidden=0
  295.  ImageTint=#MainColor#
  296.  
  297. [MeterProgressBar1]
  298.  Meter=Shape
  299.  X=(#Width#/8)+90
  300.  Y=([MeterCover:X]+97)
  301.  Shape=Rectangle 0,0,(#Width#-(#Width#/3.5)),4,(4/2) | Fill Color 255,225,255,25 | StrokeWidth 0
  302.  Shape2=Rectangle 0,0,((#Width#-(#Width#/3.5))*([MeasureProgress]/100)),4,(4/2) | Fill Color #MainColor#,245 | StrokeWidth 0
  303.  DynamicVariables=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement