-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBMediaTaskbarWidget.ini
241 lines (211 loc) · 12 KB
/
BMediaTaskbarWidget.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
[Rainmeter]
Update=100
AccurateText=1
MiddleMouseUpAction=[!Refresh]
OnRefreshAction=[!CommandMeasure MeasureActionTimer "Execute 1"][!HideMeterGroup VolumeControl]
[Metadata]
Name=BTunes Taskbar Widget
Author=Blapman007
Information="Control your media, right from the taskbar."
Version=1
License=Creative Commons Attribution - Non - Commercial - Share Alike 3.0
[Variables]
;User Settings, these are for you :D
SpotiGreen=29,185,84
YoutubeRed=255,0,0
SoundCloudOrange=242,111,35
AlbumArtSize=45
TextClipWidth=200
TextClipHeight=20
TextFontSize=10
DetailsFontColor=255,255,255
SongDetailPositionX=48
SongDetailPositionY=8
ProgressBarPositionX=48
ProgressBarPositionY=33
ProgressBarWidth=310
ProgressBarThickness=5
FirstButtonPosition=58
ButtonSpacing=5R
ButtonHeight=6
HoverVolumeBGOpacity=200
VolumeLvFontSize=13
VolumeBtnSize=30
VolumeBtnPadding=10
; Marquee settings, these aren't for you :(
animationSpeed=32
marqueeBeginWait=1500
marqueeEndWait=1500
;Dynamic Vars, neither are these :(
marquee1=0
volopac1=1
ProgressBarCol=29,185,84
;MEASURES
;Get the player
[MeasurePlayer]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=PLAYER
;Set color of progress bar based on player name
;Assume Spotify
IfMatch=Windows Media Session|Spotify
IfMatchAction=[!SetVariable ProgressBarCol #SpotiGreen#]
;YouTube
IfMatch2=YouTube|Netflix
IfMatchAction2=[!SetVariable ProgressBarCol #YoutubeRed#]
;SoundCloud
IfMatch3=Soundcloud
IfMatchAction3=[!SetVariable ProgressBarCol #SoundCloudOrange#]
;Get the title
[MeasureTitle]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=TITLE
DynamicVariables=1
OnChangeAction=[!SetVariable marquee1 0][!CommandMeasure MeasureActionTimer "Execute 1"]
;Get the artist
[MeasureArtist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=ARTIST
DynamicVariables=1
;Get the Duration
[MeasureDuration]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=DURATION
OnChangeAction=[!SetVariable marquee1 0][!CommandMeasure MeasureActionTimer "Execute 1"]
IfCondition=MeasureDuration < 1
IfTrueAction=[!Hide]
IfFalseAction=[!Show]
;Get the Progress
[MeasureProgress]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=PROGRESS
[MeasureState]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=STATE
Substitute="0":"#@#Images\play-fill.png","1":"#@#Images\pause-fill.png","2":"#@#Images\play-fill.png","3":"#@#Images\play-fill.png"
DynamicVariables=1
[MeasureMarquee1Offset]
Measure=Calc
Formula=max(0,([MeterDetails:W] - [MeterDetailContainer:W]))
DynamicVariables=1
[MeasureActionTimer]
Measure=Plugin
Plugin=ActionTimer
; Marquee 1
ActionList1=Repeat Move1,#animationSpeed#,[MeasureMarquee1Offset:] | Wait #marqueeEndWait# | Reset1 | Wait #marqueeBeginWait# | DoOver1
Reset1=[!SetVariable marquee1 0][!UpdateMeasure MeasureActionTimer][!UpdateMeter MeterDetails][!Redraw]
Move1=[!SetVariable marquee1 "(#marquee1# - 1)"][!UpdateMeasure MeasureActionTimer][!UpdateMeter MeterDetails][!Redraw]
DoOver1=[!CommandMeasure MeasureActionTimer "Execute 1"]
DynamicVariables=1
[MeasureAlbumArt]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Cover
; The DefaultPath will be returned when no cover art has been found.
DefaultPath=#@#Images\nocover.png
UpdateDivider = 5
[MeasureVolume]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Volume
;METERS
;Display Artist Name - Song NameS
[MeterDetails]
Meter=String
MeasureName=MeasureArtist
MeasureName2=MeasureTitle
AntiAlias=1
FontColor=#DetailsFontColor#
FontFace=Circular Std Medium
FontSize=#TextFontSize#
Text="%1 | %2"
X=#marquee1#
Y=2
Container=MeterDetailContainer
DynamicVariables=1
[MeterProgress]
Meter=Bar
MeasureName=MeasureProgress
X=#ProgressBarPositionX#
Y=#ProgressBarPositionY#
W=#ProgressBarWidth#
H=#ProgressBarThickness#
BarColor=#ProgressBarCol#
SolidColor=60,60,60,255
BarOrientation=Horizontal
DynamicVariables=1
LeftMouseUpAction=[!CommandMeasure MeasureTitle "SetPosition $MouseX:%$"][!UpdateMeasure MeasureTitle][!Redraw]
[MeterDetailContainer]
Meter=Shape
Shape=Rectangle 0,-5,#TextClipWidth#,#TextClipHeight#
Y=#SongDetailPositionY#
X=#SongDetailPositionX#
;[MeterContVis]
;Meter=Shape
;Shape=Rectangle 0,-5,#TextClipWidth#,#TextClipHeight#
[MeterPrevious]
Meter=Image
ImageName=#@#Images\skip-back-fill.png
X=(#TextClipWidth# + #FirstButtonPosition#)
Y=#ButtonHeight#
LeftMouseUpAction=[!CommandMeasure MeasureTitle "Previous"]
[MeterPause]
Meter=Image
MeasureName=MeasureState
ImageName="#@#Images\pause-fill.png"
X=#ButtonSpacing#
Y=#ButtonHeight#
LeftMouseUpAction=[!CommandMeasure MeasureTitle "PlayPause"]
[MeterNext]
Meter=Image
ImageName=#@#Images\skip-forward-fill.png
X=#ButtonSpacing#
Y=#ButtonHeight#
LeftMouseUpAction=[!CommandMeasure MeasureTitle "Next"]
[MeterAlbumArt]
Meter=Image
h=#AlbumArtSize#
w=#AlbumArtSize#
MeasureName=MeasureAlbumArt
PreserveAspectRatio=1
[MeterVolumeBG]
Meter=Shape
Shape=Rectangle 0,0,(#TextClipWidth# + 1),#ProgressBarPositionY# | Fill Color 0,0,0,#volopac1# | StrokeWidth 0
X=#SongDetailPositionX#
Y=0
DynamicVariables=1
MouseActionCursorName="SIZE_WE"
MouseOverAction=[!SetVariable volopac1 #HoverVolumeBGOpacity#][!ShowMeterGroup VolumeControl]
MouseLeaveAction=[!SetVariable volopac1 1][!HideMeterGroup VolumeControl]
LeftMouseUpAction=[!CommandMeasure MeasurePlayer "SetVolume $MouseX:%$"]
[MeterVolumeLv]
Meter=String
MeasureName=MeasureVolume
AntiAlias=1
FontColor=#DetailsFontColor#
FontFace=Circular Std Medium
FontSize=#VolumeLvFontSize#
StringAlign=CenterCenter
Text="%1"
X=(#SongDetailPositionX#+(#TextClipWidth# / 2))
Y=(#ProgressBarPositionY# / 2)
Group=VolumeControl
[MeterVolumeUp]
Meter=Image
ImageName=#@#Images\vpls.png
W=#VolumeBtnSize#
H=#VolumeBtnSize#
Group=VolumeControl
X=(((#TextClipWidth# + #SongDetailPositionX#) - #VolumeBtnSize#) - #VolumeBtnPadding#)
[MeterVolumeDn]
Meter=Image
ImageName=#@#Images\vmin.png
W=#VolumeBtnSize#
H=#VolumeBtnSize#
Group=VolumeControl
X=(#SongDetailPositionX# + #VolumeBtnPadding#)