dotfiles

Alpine Linux dotfiles

git clone git://git.lin.moe/dotfiles.git

  1# vim: syntax=config
  2
  3input-ipc-server=/tmp/mpvsocket         # listen for IPC on this socket
  4# save-position-on-quit                  # handled by a script
  5
  6no-border                               # no window title bar
  7msg-module                              # prepend module name to log messages
  8msg-color                               # color log messages on terminal
  9term-osd-bar                            # display a progress bar on the terminal
 10use-filedir-conf                        # look for additional config files in the directory of the opened file
 11pause                                   # no autoplay
 12keep-open                               # keep the player open when a file's end is reached
 13cursor-autohide-fs-only                 # don't autohide the cursor in window mode, only fullscreen
 14input-media-keys=no                     # enable/disable OSX media keys
 15cursor-autohide=1000                    # autohide the curser after 1s
 16prefetch-playlist=yes
 17force-seekable=yes
 18
 19screenshot-format=png
 20screenshot-png-compression=8
 21screenshot-template='pics/screenshots/%F (%P) %n'
 22
 23# profile=high-quality
 24profile=gpu-hq
 25video-sync=display-resample
 26interpolation
 27
 28[default]
 29cache=yes
 30demuxer-max-bytes=400MiB
 31demuxer-max-back-bytes=150MiB
 32
 33
 34#############
 35# Subtitles #
 36#############
 37demuxer-mkv-subtitle-preroll=yes        # try to show embedded subs when seeking even when no index information is present
 38demuxer-mkv-subtitle-preroll-secs=2
 39
 40sub-auto=fuzzy                          # external subs don't have to match the file name exactly to autoload
 41sub-file-paths-append=ass               # search for external subs in these relative subdirectories
 42sub-file-paths-append=srt
 43sub-file-paths-append=sub
 44sub-file-paths-append=subs
 45sub-file-paths-append=subtitles
 46
 47embeddedfonts=yes                       # use embedded fonts for SSA/ASS subs
 48sub-fix-timing=no                       # do not try to fix gaps (which might make it worse in some cases)
 49sub-ass-style-overrides=Kerning=yes         # allows you to override style parameters of ASS scripts
 50sub-use-margins
 51sub-ass-force-margins
 52
 53# the following options only apply to subtitles without own styling (i.e. not ASS but e.g. SRT)
 54sub-font="Noto Sans"
 55sub-font-size=36
 56sub-color="#FFFFFFFF"
 57sub-border-color="#FF262626"
 58sub-border-size=3.2
 59sub-shadow-offset=1
 60sub-shadow-color="#33000000"
 61sub-spacing=0.5
 62
 63blend-subtitles=video
 64
 65slang=chi,chs,enm,en,eng,de,deu,ger             # automatically select these subtitles (decreasing priority)
 66alang=chi,chs,ja,jp,jpn,en,eng,de,deu,ger       # automatically select these audio tracks (decreasing priority)
 67
 68audio-file-auto=fuzzy                   # external audio doesn't has to match the file name exactly to autoload
 69audio-pitch-correction=yes              # automatically insert scaletempo when playing with higher speed
 70audio-display=no                        # hide audio display
 71volume-max=200                          # maximum volume in %, everything above 100 results in amplification
 72volume=100                              # default volume, 100 = unchanged
 73
 74# Defaults for all profiles
 75# tscale=linear
 76tscale=oversample                      # [sharp] oversample <-> linear (triangle) <-> catmull_rom <-> mitchell <-> gaussian <-> bicubic [smooth]
 77opengl-early-flush=no
 78opengl-pbo=yes	# "yes" is currently bugged: https://github.com/mpv-player/mpv/issues/4988
 79icc-profile-auto
 80# hwdec=auto-safe
 81hwdec=vulkan
 82hwdec-codecs=all
 83gpu-api=vulkan
 84
 85
 86[high-quality]
 87profile-desc=cond:is_high(get('width', 0), get('height', 0), get('estimated-vf-fps', 0))
 88scale=ewa_hanning
 89scale-radius=3.2383154841662362
 90scale=ewa_lanczossharp
 91cscale=ewa_lanczossoft
 92dscale=mitchell
 93scale-antiring=0
 94cscale-antiring=0
 95dither-depth=auto
 96correct-downscaling=yes
 97sigmoid-upscaling=yes
 98deband=yes
 99glsl-shaders-append="~/.config/mpv/shaders/ravu-lite-r4.hook"
100glsl-shaders-append="~/.config/mpv/shaders/ravu-lite-r4.hook"
101glsl-shaders-append="~/.config/mpv/shaders/ravu-lite-r4.hook"
102
103[mid-quality]
104profile-desc=cond:is_mid(get('width', 0), get('height', 0), get('estimated-vf-fps', 0))
105scale=spline36
106cscale=bicubic
107dscale=mitchell
108scale-antiring=1.0
109cscale-antiring=1.0
110dither-depth=auto
111correct-downscaling=yes
112sigmoid-upscaling=yes
113deband=yes
114glsl-shaders-set=""
115
116[low-quality]
117profile-desc=cond:is_low(get('width', 0), get('height', 0), get('estimated-vf-fps', 0))
118scale=bilinear
119cscale=bilinear
120dscale=bilinear
121scale-antiring=0
122cscale-antiring=0
123dither-depth=no
124correct-downscaling=no
125sigmoid-upscaling=no
126deband=no
127glsl-shaders-set=""
128
129[4K-lavc-threads]
130profile-desc=cond:get('width', -math.huge) >= 3840
131vd-lavc-threads=32
132
133[4K-lavc-threads-inverted]
134profile-desc=cond:get('width', math.huge) < 3840
135vd-lavc-threads=0
136
137[protocol.https]
138cache=yes
139user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:57.0) Gecko/20100101 Firefox/58.0'
140
141[protocol.http]
142cache=yes
143user-agent='Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:57.0) Gecko/20100101 Firefox/58.0'
144