Compare commits

...

6 Commits

5 changed files with 34 additions and 71 deletions

View File

@ -1,7 +1,8 @@
# See https://pre-commit.com for more information
# See https://pre-commit.ci for more information
ci:
skip: [prettier, alex]
#skip: [prettier, alex]
skip: [prettier]
# Forĝejo/Gitea mirrors will autoclose pull requests. This should decrease
# the frequency of unnecessary PRs.
# https://github.com/pre-commit-ci/issues/issues/83
@ -98,10 +99,10 @@ repos:
name: prettier
entry: corepack npx prettier --cache --ignore-unknown --write
language: system
- id: alex
name: alex
entry: corepack npx alex --why --quiet
language: system
# - id: alex
# name: alex
# entry: corepack npx alex --why --quiet
# language: system
# .editorconfig validity checking
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python

6
chmod
View File

@ -49,8 +49,10 @@ if hash setfacl 2> /dev/null; then
fi
# Fedora Atomic compatibility
if [ -d /var/roothome ]; then
chmod -v a+x /var/roothome
if [ "$(id -u)" == "0" ]; then
if [ -d /var/roothome ]; then
chmod -v a+x /var/roothome
fi
fi
set +x

View File

@ -1,53 +1,39 @@
# ~/.config/mpv/mpv.conf
# Unless otherwise specified, since these are suggested in the warning about
# audio/video desychnorinization
profile=fast
#hwdec=auto-safe
# <~/.config/mpv/mpv.conf|~/.var/app/io.mpv.Mpv/config/mpv/mpv.conf>
# Preferred audio drivers, but by trailing comma, let others be used too.
# Fedora: pipewire-jack-audio-connection-kit pipewire-pulseaudio pipewire-alsa
# TODO: Does the above apply with PipeWire being the default?
ao=pipewire,pulse,
# And same for video output drivers
vo=gpu-next,gpu,
# Use Vulkan when possible to also get free $MANGOHUD
hwdec=vulkan,auto
gpu-api=vulkan,auto
gpu-context=waylandvk,wayland,auto
# Compatible options that apparently use vulkan for mangohud on my hardware
# anyway \o/
profile=fast
hwdec=auto
gpu-api=auto
gpu-context=auto
# Resolve audio/video descynchronisation automatically by adjusting audio
# speed
video-sync=display-resample
interpolation
# Specify preferred audio and subtitle languages. Two subtitles are shown
# simultaneously, one on top, another on bottom.
# REMEMBER to override this with --alang= --slang= as needed!
alang=jpn,jp,ja,en,eng,fi,fin
slang=fi,fin,sdh,doh,en,eng,eo,epo,la,lat,sv,swe,ru,rus,cs,ces,cze,es,spa,jpn,jp
# TODO: test this! and for YouTube videos/links
ytdl-raw-options-append=sub-langs=fi,fin,sdh,doh,en,eng,eo,epo,la,lat,sv,swe,ru,rus,cs,ces,cze,es,spa,jpn,jp
# Remember quit position even without Shift+Q
save-position-on-quit
# Disable embedded fonts in subtitle files and use my preferred font for both
# subtitles and UI. Subtitle preferred font may get used if it exists in the
# system though?
embeddedfonts=no
# Sans-Serif fonts are the best for legibility
#sub-font='Roboto'
#sub-ass-style-overrides=FontName='Roboto'
#osd-font='Roboto'
# Noto is likely the best covered with strange UTF-8 glyphs while also
# designed to be compatible with Roboto
#sub-font='Noto Sans'
#sub-ass-style-overrides=FontName='Noto Sans'
#osd-font='Noto Sans'
# However Comic Neue is what I have gotten used to reading on Kindle and
# where I want legibility. This could also be overridden by --sub-font="" in
# terminal flags (see --alang and --slang= above)
#sub-font='Comic Neue'
#sub-ass-style-overrides=FontName='Comic Neue'
#osd-font='Comic Neue'
sub-font='Inclusive Sans'
#sub-ass-style-overrides=FontName='Inclusive Sans'
osd-font='Inclusive Sans'
# Amber font for subtitles
# Amber font color for subtitles, unless they otherwise specify?
sub-color='#ffb700'
# Enable two simultaneous subtitles (first slang on bottom, second on top?)
@ -69,37 +55,11 @@ sub-ass-override=yes
secondary-sub-ass-override=yes
# Use decreased volume by default so when Mumbling or other VoIP mpv is
# quieter than other people
volume=70
# quieter than other people. 70 may be better while VoIPing, but 80 is
# comfortable watching alone and / and * always exist.
volume=80
# Fullscreen by default
#fs=yes
fs=yes
# Windows maximized by default
window-maximized=yes
# Vsync? The user who originally added it judged it to not be working
# though.
#opengl-swapinterval=0
# HQ options according to Arch Wiki, may cause problems for "a few users"
#profile=gpu-hq
# AW says that the manual says to use these for the best quality if the
# hardware can handle it.
## 2020-11-09: even Sedric doesn't handle this for some reason, 8 GB RAM
## and no swap isn't enough?
#scale=ewa_lanczossharp
#cscale=ewa_lanczossharp
# "more complicated", desyncing video causes resampling audio
#video-sync=display-resample
# make motion smoother (both two)
#interpolation
#tscale=oversample
# When watching YouTube videos, don't eat all CPU and bandwidth being
# even more unpleasant to use!
# https://github.com/mpv-player/mpv/issues/4241#issuecomment-327033395
ytdl-format=bestvideo[height<=?720][fps<=?30][vcodec!=?vp9]+bestaudio/best
# Take commands from controller.
# TODO: actually map something to it!
#input-gamepad=yes
#window-maximized=yes

@ -1 +1 @@
Subproject commit c07a75a26d84430a3ec6c0e4f9f8d5dc2d0650e6
Subproject commit a922f0df842463d348a0852a26532bb644bf066c

@ -1 +1 @@
Subproject commit 83df460c9b7afdbef0c412cd67bb24662c85a6e2
Subproject commit 017c023cec741bbd24c43956a674a0d02931dc41