-
Notifications
You must be signed in to change notification settings - Fork 8
/
torque-progressbar.conf
327 lines (263 loc) · 14.2 KB
/
torque-progressbar.conf
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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
# Sets the height of the rectangular area at the bottom of the screen that expands
# the progress bar and shows playback time information when the mouse is hovered
# over it.
hover-zone-height=40
# Sets the height of the rectangular area at the top of the screen that shows the
# file name and system time when the mouse is hovered over it.
top-hover-zone-height=40
# Default style that is applied to all UI elements. A string of ASS override tags.
# Individual elements have their own style settings which override the tags here.
# Changing the font will likely require changing the hover-time margin settings
# and the offscreen-pos settings.
#
# Here are some useful ASS override tags (omit square brackets):
# \fn[Font Name]: sets the font to the named font.
# \fs[number]: sets the font size to the given number.
# \b[1/0]: sets the text bold or not (\b1 is bold, \b0 is regular weight).
# \i[1/0]: sets the text italic or not (same semantics as bold).
# \bord[number]: sets the outline width to the given number (in pixels).
# \shad[number]: sets the shadow size to the given number (pixels).
# \c&H[BBGGRR]&: sets the fill color for the text to the given color (hex pairs in
# the order, blue, green, red).
# \3c&H[BBGGRR]&: sets the outline color of the text to the given color.
# \4c&H[BBGGRR]&: sets the shadow color of the text to the given color.
# \alpha&H[AA]&: sets the line's transparency as a hex pair. 00 is fully opaque
# and FF is fully transparent. Some UI elements are composed of
# multiple layered lines, so adding transparency may not look good.
# For further granularity, \1a&H[AA]& controls the fill opacity,
# \3a&H[AA]& controls the outline opacity, and \4a&H[AA]& controls
# the shadow opacity.
default-style=\fnSource Sans Pro\b1\bord2\shad0\fs30\c&HFC799E&\3c&H2D2D2D&
# Controls whether or not the progress bar is drawn at all. If this is disabled,
# it also (naturally) disables the click-to-seek functionality.
enable-bar=yes
# Causes the bar to not be drawn unless the mouse is hovering over it or a
# request-display call is active. This is somewhat redundant with setting bar-
# height-inactive=0, except that it can allow for very rudimentary context-
# sensitive behavior because it can be toggled at runtime. For example, by using
# the binding `f cycle pause; script-binding progressbar/toggle-inactive-bar`, it
# is possible to have the bar be persistently present only in windowed or
# fullscreen contexts, depending on the default setting.
bar-hide-inactive=no
# Sets the height of the bar display when the mouse is not in the active zone and
# there is no request-display active. A value of 0 or less will cause bar-hide-
# inactive to be set to true and the bar height to be set to 1. This should result
# in the desired behavior while avoiding annoying debug logging in mpv (libass
# does not like zero-height objects).
bar-height-inactive=3
# Sets the height of the bar display when the mouse is in the active zone or
# request-display is active. There is no logic attached to this, so 0 or negative
# values may have unexpected results.
bar-height-active=8
# If greater than zero, changes the progress bar style to be a small segment
# rather than a continuous bar and sets its width.
progress-bar-width=0
# Affects precision of seeks due to clicks on the progress bar. Should be 'exact' or
# 'keyframes'. Exact is slightly slower, but won't jump around between two
# different times when clicking in the same place.
#
# Actually, this gets passed directly into the `seek` command, so the value can be
# any of the arguments supported by mpv, though the ones above are the only ones
# that really make sense.
seek-precision=exact
# Causes the progress bar background layer to automatically size itself to the
# tallest of the cache or progress bars. Useful for improving contrast but can
# make the bar take up more screen space. Has no effect if the cache bar height is
# less than the bar height.
bar-background-adaptive=yes
# Placement of the cache bar. Valid values are 'overlay' and 'underlay'.
#
# 'overlay' causes the cache bar to be drawn on top of the foreground layer of the
# bar, allowing the display of seek ranges that have already been encountered.
#
# 'underlay' draws the cache bar between the foreground and background layers. Any
# demuxer cache ranges that are prior to the current playback point will not be
# shown. This matches the previous behavior.
bar-cache-position=overlay
# Sets the height of the cache bar display when the mouse is not in the active
# zone and there is no request-display active. Useful in combination with bar-
# cache-position to control whether or not the cache bar is occluded by (or
# occludes) the progress bar.
bar-cache-height-inactive=3
# Sets the height of the cache bar display when the mouse is in the active zone or
# request-display is active. Useful in combination with bar-cache- position to
# control whether or not the cache bar is occluded by (or occludes) the progress
# bar.
bar-cache-height-active=8
# A string of ASS override tags that get applied to all three layers of the bar:
# progress, cache, and background. You probably don't want to remove \bord0 unless
# your default-style includes it.
bar-default-style=\bord0\shad0
# A string of ASS override tags that get applied only to the progress layer of the
# bar.
bar-foreground-style=
# A string of ASS override tags that get applied only to the cache layer of the
# bar, particularly the part of the cache bar that is behind the current playback
# position. The default sets only the color.
bar-cache-style=\c&HFDAFC8&
# A string of ASS override tags that get applied only to the cache layer of the
# bar, particularly the part of the cache bar that is after the current playback
# position. The tags specified here are applied after bar-cache-style and override
# them. Leaving this blank will leave the style the same as specified by bar-
# cache-style. The split does not account for a nonzero progress-bar-width and may
# look odd when used in tandem with that setting.
bar-cache-background-style=\c&H525252&
# A string of ASS override tags that get applied only to the background layer of
# the bar. The default sets only the color.
bar-background-style=\c&H2D2D2D&
# Sets whether or not the elapsed time is displayed at all.
enable-elapsed-time=yes
# A string of ASS override tags that get applied only to the elapsed time display.
elapsed-style=
# Controls how far from the left edge of the window the elapsed time display is
# positioned.
elapsed-left-margin=4
# Controls how far above the expanded progress bar the elapsed time display is
# positioned.
elapsed-bottom-margin=0
# Sets whether or not the remaining time is displayed at all.
enable-remaining-time=yes
# A string of ASS override tags that get applied only to the remaining time
# display.
remaining-style=
# Controls how far from the right edge of the window the remaining time display is
# positioned.
remaining-right-margin=4
# Controls how far above the expanded progress bar the remaining time display is
# positioned.
remaining-bottom-margin=0
# Sets whether or not the calculated time corresponding to the mouse position
# is displayed when the mouse hovers over the progress bar.
enable-hover-time=yes
# A string of ASS override tags that get applied only to the hover time display.
# Unfortunately, due to the way the hover time display is animated, alpha values
# set here will be overridden. This is subject to change in future versions.
hover-time-style=\fs26
# Controls how close to the left edge of the window the hover time display can
# get. If this value is too small, it will end up overlapping the elapsed time
# display.
hover-time-left-margin=120
# Controls how close to the right edge of the window the hover time display can
# get. If this value is too small, it will end up overlapping the remaining time
# display.
hover-time-right-margin=130
# Controls how far above the expanded progress bar the remaining time display is
# positioned.
hover-time-bottom-margin=0
# Sets whether or not thumbnails are displayed at all. Note: thumbnail display
# requires use of the thumbfast script (See: https://github.com/po5/thumbfast).
enable-thumbnail=yes
# Controls how close to the left edge of the window the thumbnail display can
# get.
thumbnail-left-margin=10
# Controls how close to the right edge of the window the thumbnail display can
# get.
thumbnail-right-margin=10
# Controls how far above the expanded progress bar the thumbnail display is
# positioned.
thumbnail-bottom-margin=40
# Sets whether or not the video title is displayed at all.
enable-title=yes
# A string of ASS override tags that get applied only to the video title display.
title-style=
# Controls how far from the left edge of the window the video title display is
# positioned.
title-left-margin=4
# Controls how far from the top edge of the window the video title display is
# positioned.
title-top-margin=0
# Controls whether or not the script logs the video title and playlist position
# to the console every time a new video starts.
title-print-to-cli=yes
# Sets whether or not the system time is displayed at all.
enable-system-time=yes
# A string of ASS override tags that get applied only to the system time display.
system-time-style=
# Sets the format used for the system time display. This must be a strftime-
# compatible format string.
system-time-format=%H:%M
# Controls how far from the right edge of the window the system time display is
# positioned.
system-time-right-margin=4
# Controls how far from the top edge of the window the system time display is
# positioned.
system-time-top-margin=0
# Sets whether or not the pause indicator is displayed. The pause indicator is a
# momentary icon that flashes in the middle of the screen, similar to youtube.
pause-indicator=yes
# A string of ASS override tags that get applied only to the foreground of the
# pause indicator.
pause-indicator-foreground-style=\c&HFC799E&
# A string of ASS override tags that get applied only to the background of the
# pause indicator.
pause-indicator-background-style=\c&H2D2D2D&
# Sets whether or not the progress bar is decorated with chapter markers. Due to
# the way the chapter markers are currently implemented, videos with a large
# number of chapters may slow down the script somewhat, but I have yet to run
# into this being a problem.
enable-chapter-markers=yes
# If enabled and the item being played back has chapters, using the
# `chapter-seek-button` while the progress bar is hovered will seek the video to
# the chapter that is closest to the mouse cursor's position.
enable-chapter-seek=no
# The button to register for chapter seeking, if enabled. Since chapter seeking
# is based on the mouse position, this should probably be bound to a mouse button,
# but it doesn't have to be.
chapter-seek-button=MBTN_RIGHT
# Controls the width of each chapter marker when the progress bar is inactive.
chapter-marker-width=2
# Controls the width of each chapter marker when the progress bar is active.
chapter-marker-width-active=4
# Modifies the height of the chapter markers when the progress bar is active. Acts
# as a multiplier on the height of the active progress bar. A value greater than 1
# will cause the markers to be taller than the expanded progress bar, whereas a
# value less than 1 will cause them to be shorter.
chapter-marker-active-height-fraction=1
# A string of ASS override tags that get applied only to chapter markers that have
# not yet been passed.
chapter-marker-before-style=\c&HFC799E&
# A string of ASS override tags that get applied only to chapter markers that have
# already been passed.
chapter-marker-after-style=\c&H2D2D2D&
# Sets the amount of time in seconds that the UI stays on the screen after it
# receives a request-display signal. A value of 0 will keep the display on screen
# only as long as the key bound to it is held down.
request-display-duration=1
# Controls how often the display is redrawn, in seconds. This does not seem to
# significantly affect the smoothness of animations, and it is subject to the
# accuracy limits imposed by the scheduler mpv uses. Probably not worth changing
# unless you have major performance problems.
redraw-period=0.03
# Controls how long the UI animations take. A value of 0 disables all animations
# (which breaks the pause indicator).
animation-duration=0.25
# Controls how far off the left side of the window the elapsed time display tries
# to move when it is inactive. If you use a non-default font, this value may need
# to be tweaked. If this value is not far enough off-screen, the elapsed display
# will disappear without animating all the way off-screen. Positive values will
# cause the display to animate the wrong direction.
elapsed-offscreen-pos=-100
# Controls how far off the left side of the window the remaining time display
# tries to move when it is inactive. If you use a non-default font, this value may
# need to be tweaked. If this value is not far enough off-screen, the elapsed
# display will disappear without animating all the way off-screen. Positive values
# will cause the display to animate the wrong direction.
remaining-offscreen-pos=-100
# Controls how far off the bottom of the window the mouse hover time display tries
# to move when it is inactive. If you use a non-default font, this value may need
# to be tweaked. If this value is not far enough off-screen, the elapsed
# display will disappear without animating all the way off-screen. Positive values
# will cause the display to animate the wrong direction.
hover-time-offscreen-pos=-50
# Controls how far off the left side of the window the system time display tries
# to move when it is inactive. If you use a non-default font, this value may need
# to be tweaked. If this value is not far enough off-screen, the elapsed display
# will disappear without animating all the way off-screen. Positive values will
# cause the display to animate the wrong direction.
system-time-offscreen-pos=-100
# Controls how far off the left side of the window the video title display tries
# to move when it is inactive. If you use a non-default font, this value may need
# to be tweaked. If this value is not far enough off-screen, the elapsed display
# will disappear without animating all the way off-screen. Positive values will
# cause the display to animate the wrong direction.
title-offscreen-pos=-40