Samillion / ModernZ

A sleek and modern OSC for mpv designed to enhance functionality by adding more features, all while preserving the core standards of mpv's OSC.
GNU Lesser General Public License v2.1
39 stars 6 forks source link

consider adding modernz.conf #10

Closed mrfragger closed 3 weeks ago

mrfragger commented 3 weeks ago
# modernz.conf https://github.com/Samillion/ModernZ

# General
# show mpv logo on idle - [yes] no
idlescreen=yes
# whether to show OSC window controls, [auto], yes or no          
windowcontrols=auto
# show OSC when windowed? - [yes], no       
showwindowed=yes
# show OSC when fullscreen? - [yes], no     
showfullscreen=yes
# disable santa hat in December - yes, [no]    
greenandgrumpy=no

# Colors
# accent of the OSC and the title bar - [#000000]
osc_color=#000000
# color of title in borderless/fullscreen mode - [#FFFFFF]         
window_title_color=#FFFFFF
# color of window controls (close, min, max) in borderless/fullscreen mode - [#FFFFFF]
window_controls_color=#FFFFFF
# color of the title (above seekbar) - [#FFFFFF]
title_color=#FFFFFF
# color of the seekbar progress and handle - #BE4D25
seekbarfg_color=#BE4D25
# color of the remaining seekbar - [#FFFFFF]
seekbarbg_color=#FFFFFF
# color of timestamps (below seekbar) - [#FFFFFF]
time_color=#FFFFFF
# color of side buttons (audio, sub, playlist, vol, loop, info..etc) - [#FFFFFF]
side_buttons_color=#FFFFFF
# color of middle buttons (skip, jump, chapter...etc) - [#FFFFFF]
middle_buttons_color=#FFFFFF
# color of play/pause button - [#FFFFFF]
playpause_color=#FFFFFF

# Buttons
# whether buttons have a glowing effect when hovered over - [yes], no
hovereffect=yes
# show playlist button? LClick: show playlist, RClick: use select.lua - yes, [no]
showplaylist=yes
# show "jump forward/backward 10 seconds" buttons - [yes], no
showjump=yes
# show the skip back and forward (chapter) buttons - yes, [no]
showskip=yes
# show the info button - yes, [no]
showinfo=yes
# show the loop button - [yes], no
showloop=yes
#show window on top button  - [yes], no
showontop=yes
# show screenshot button - yes, [no]
showscreenshot=yes
# Mode when using the screenshot button. [subtitles], video, window 
screenshot_flag=subtitles
# https://mpv.io/manual/master/#command-interface-screenshot-%3Cflags%3E

# Scaling
# whether to scale the controller with the video - [yes], no
vidscale=yes
# scaling of the controller when windowed  - [1.0]
scalewindowed=1.0
# scaling of the controller when fullscreen - [1.0]
scalefullscreen=1.0
# scaling when rendered on a forced window - [1.0]
scaleforcedwindow=1.0

# Time & Volume
# whether to use the Unicode minus sign character in remaining time - yes, [no]
unicodeminus=no
# display total time instead of remaining time? - [yes], no
timetotal=yes
# display timecodes with milliseconds? - yes, [no]
timems=no
# the font size of the time [18]
timefontsize=18
# change the jump amount (in seconds by default) - [10]
jumpamount=10
# show different icon when jumpamount is 5, 10, or 30 - [yes], no
jumpiconnumber=yes
# seek mode for jump buttons - [relative]
jumpmode="relative"
# whether to show mute button and volume slider - [yes], no
volumecontrol=yes
# use ["linear"] or "log" (logarithmic) volume scale
volumecontroltype=linear

# Seeking
# use keyframes when dragging the seekbar - yes, [no]
seekbarkeyframes=no
# size ratio of the slider handle, range 0 ~ 1 - [0.8]
seekbarhandlesize=0.8
# show seekrange overlay - [yes], no
seekrange=yes
# transparency of seekranges - [150]
seekrangealpha=150
# update seekbar chapter markers on duration change - [yes], no
livemarkers=yes
# show osc when seeking? or input.conf: x script-message-to modernz osc-show - yes, [no]
osc_on_seek=yes
# set seekbarkeyframes based on video length to prevent laggy scrubbing on long videos  - [yes], no
automatickeyframemode=yes
# videos of above this length (in seconds) will have seekbarkeyframes on - [600]
automatickeyframelimit=600

# UI [elements]
# show title in OSC (above seekbar) - [yes], no
showtitle=yes
# show window title in borderless/fullscreen mode - [yes], no
showwindowtitle=yes
# show window controls (close, min, max) in borderless/fullscreen - [yes], no
showwindowcontrols=yes
# whether to make the title bar a singular bar instead of a black fade - yes, [no]
titleBarStrip=no
# title shown on OSC (above seekbar). ["${media-title}] or "${filename}
title="${media-title}"
# mpv-osd-symbols=default osc font (or the one set in mpv.conf) - ["mpv-osd-symbols"]
font="mpv-osd-symbols"
# the font size of the title text (above seekbar) - [30]
titlefontsize=30
# chapter print format for seekbar-hover. "no" to disable - ["Chapter: %s"]
chapter_fmt="Chapter: %s"
# always show a small progress line at the bottom of the screen - yes, [no]
persistentprogress=yes
# the height of the persistentprogress bar - [17]
persistentprogressheight=17
# on web videos, show the buffer on the persistent progress line - yes, [no]
persistentbuffer=no
# enable toggling the persistentprogress bar - yes, [no]
persistentprogresstoggle=yes
# replace the jump buttons with the chapter buttons - yes, [no]
compactmode=no

# UI [behavior]
# whether to show osc when paused - [yes], no
showonpause=yes
# whether to disable the hide timeout on pause - [yes], no
onpausenotimeout=yes
# if the osc should only display when hovering at the bottom - [yes], no
bottomhover=yes
# whether to raise subtitles above the osc when it's shown - [yes], no
raisesubs=yes
# the width of the thumbnail border (thumbfast) - [2]
thumbnailborder=2
# alpha of the background box for the OSC - [150]
OSCfadealpha=150
# alpha of the window title bar [75]
boxalpha=75
# If you pin the window, keep window border? - yes, [no]
ontopborder=no
# activate looping by right clicking pause - [yes], no
loopinpause=yes
# only used at init to set visibility_mode(...) - [auto]
visibility=auto

# UI [time-based]
# duration in ms until OSC hides if no mouse movement - [2000]
hidetimeout=2000
# duration of fade out in ms, 0=no fade - [250]
fadeduration=250
# amount of pixels the mouse has to move for OSC to show - [0]
minmousemove=0
# minimum interval between OSC redraws in seconds - [1 / 60]
tick_delay='1 / 60'
# use display fps as the minimum interval - yes, [no]
tick_delay_follow_display_fps=no
Samillion commented 3 weeks ago

You mean to add a modernz.conf file so that users can simply download and edit?

Samillion commented 3 weeks ago

Done: https://github.com/Samillion/ModernZ/blob/main/modernz.conf

mrfragger commented 3 weeks ago

yea that's what I meant..sorry I tested it was bad so just updated it now and should be good..oh ok perfect even better..you put the official one.

image

not sure how to fix that ' ' or " " or 1/60 whatever I put in it fails

ok never mind I see just put 0.0167 for tick_delay

Samillion commented 3 weeks ago

Aha! Nice catch. Will fix the conf value now.

Thank you for that.

Samillion commented 3 weeks ago

Updated README.md accordingly to match modernz.conf I've uploaded.

Keith94 commented 3 weeks ago

@Samillion I can't get any options to take effect when using modernz.conf... any ideas why? i'm using "path-to-mpv\mpv\script-opts\modernz.conf"

Samillion commented 3 weeks ago

Could you try to run with --v to see if it's reading modernz.conf? It should show:

modernz: Opened config file script-opts/modernz.conf.

You don't need to set a path, unless you're using something different than the usual script-opts/ location.

Keith94 commented 3 weeks ago

Ahh that helped me figure it out. It was checking AppData by default but I wanted it to use a portable_config folder. Just forgot to create one.

Samillion commented 3 weeks ago

😄 Glad it worked out.