From 3f532c7393edea16117b14b20c63cd128480d4bf Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 27 Jul 2023 15:53:03 +0500 Subject: mpv: changed MPV config location --- .gitignore | 1 + files/.config/mpv/input.conf | 14 ++++++++++++ files/.config/mpv/mpv.conf | 51 ++++++++++++++++++++++++++++++++++++++++++++ files/.gitconfig | 1 + files/.mpv/input.conf | 14 ------------ files/.mpv/mpv.conf | 48 ----------------------------------------- install.conf.yaml | 2 +- 7 files changed, 68 insertions(+), 63 deletions(-) create mode 100644 files/.config/mpv/input.conf create mode 100644 files/.config/mpv/mpv.conf delete mode 100644 files/.mpv/input.conf delete mode 100644 files/.mpv/mpv.conf diff --git a/.gitignore b/.gitignore index a47e659..47c44a1 100755 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,4 @@ !/files/.task/hooks/ /files/.config/beets/state.pickle +/files/.config/mpv/watch_later/ diff --git a/files/.config/mpv/input.conf b/files/.config/mpv/input.conf new file mode 100644 index 0000000..40f89cd --- /dev/null +++ b/files/.config/mpv/input.conf @@ -0,0 +1,14 @@ +## Rotate by 90 degrees clockwise +#Alt+RIGHT no-osd vf add rotate=90 +## Rotate by 90 degrees counterclockwise +#Alt+LEFT no-osd vf add rotate=270 + +# Disable: Activate/deactivate deinterlacer. +d ignore + +Alt+p run "/bin/sh" "-c" "xdotool search --class mpv | xargs -I{} xdotool key --window {} p" + +# default loudnorm I=-24 +# I=-15 -- louder volume +# anull -- disable audio filter +a cycle_values af loudnorm loudnorm=I=-15 anull diff --git a/files/.config/mpv/mpv.conf b/files/.config/mpv/mpv.conf new file mode 100644 index 0000000..9f9f81d --- /dev/null +++ b/files/.config/mpv/mpv.conf @@ -0,0 +1,51 @@ +# Speed up playback by the factor +speed=1.33 + +# Create a video output window even if there is no video +force-window=immediate + +# Always save the current playback position on quit +save-position-on-quit + +# Disable any use of the terminal and stdin/stdout/stderr +no-terminal + +# Enable any whitelisted hardware video decoding API +hwdec=auto-safe + +# If the current file is an image, kept open forever +image-display-duration=inf +# +screenshot-template=mpv-shot-%F-%{media-title}-%p-%n +screenshot-directory=~/mpv-screenshots + +# Cache size +demuxer-max-bytes=500M + +ytdl-format="bestvideo[height<=?1080]+bestaudio/best" + +# +# PROFILES +# + +[loudnorm] +af=lavfi=[loudnorm] + +[audio] +speed=1 + +# +# EXTENSIONS +# + +[extension.gif] +loop-file=yes + +[extension.flac] +profile=audio + +[extension.mp3] +profile=audio + +[extension.ogg] +profile=audio diff --git a/files/.gitconfig b/files/.gitconfig index fdc8508..f909864 100644 --- a/files/.gitconfig +++ b/files/.gitconfig @@ -77,6 +77,7 @@ ri = rebase --interactive rc = rebase --continue ra = rebase --abort + prebase = rebase -x 'pre-commit run --from-ref HEAD~ --to-ref HEAD' # Gitlab merge requests helpers mr = !sh -c 'git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2' - diff --git a/files/.mpv/input.conf b/files/.mpv/input.conf deleted file mode 100644 index 40f89cd..0000000 --- a/files/.mpv/input.conf +++ /dev/null @@ -1,14 +0,0 @@ -## Rotate by 90 degrees clockwise -#Alt+RIGHT no-osd vf add rotate=90 -## Rotate by 90 degrees counterclockwise -#Alt+LEFT no-osd vf add rotate=270 - -# Disable: Activate/deactivate deinterlacer. -d ignore - -Alt+p run "/bin/sh" "-c" "xdotool search --class mpv | xargs -I{} xdotool key --window {} p" - -# default loudnorm I=-24 -# I=-15 -- louder volume -# anull -- disable audio filter -a cycle_values af loudnorm loudnorm=I=-15 anull diff --git a/files/.mpv/mpv.conf b/files/.mpv/mpv.conf deleted file mode 100644 index 04fee25..0000000 --- a/files/.mpv/mpv.conf +++ /dev/null @@ -1,48 +0,0 @@ -# Speed up playback by the factor -speed=1.33 - -# Create a video output window even if there is no video -force-window=immediate - -# Always save the current playback position on quit -save-position-on-quit - -# Disable any use of the terminal and stdin/stdout/stderr -no-terminal - -# Enable any whitelisted hardware video decoding API -hwdec=auto-safe - -# If the current file is an image, kept open forever -image-display-duration=inf -# -screenshot-template=mpv-shot-%F-%{media-title}-%p-%n -screenshot-directory=~/mpv-screenshots - -ytdl-format="bestvideo[height<=?1080]+bestaudio/best" - -# -# PROFILES -# - -[loudnorm] -af=lavfi=[loudnorm] - -[audio] -speed=1 - -# -# EXTENSIONS -# - -[extension.gif] -loop-file=yes - -[extension.flac] -profile=audio - -[extension.mp3] -profile=audio - -[extension.ogg] -profile=audio diff --git a/install.conf.yaml b/install.conf.yaml index 067ae5e..cca988c 100644 --- a/install.conf.yaml +++ b/install.conf.yaml @@ -19,7 +19,6 @@ ~/.editorconfig: files/.editorconfig ~/.eget.toml: files/.eget.toml ~/.lessfilter.sh: files/.lessfilter.sh - ~/.mpv: files/.mpv ~/.psqlrc: files/.psqlrc ~/.reminders: files/.reminders ~/.task: files/.task @@ -49,6 +48,7 @@ ~/.config/redshift.conf: files/.config/redshift.conf ~/.config/pgcli: files/.config/pgcli ~/.config/beets: files/.config/beets + ~/.config/mpv: files/.config/mpv - shell: - [git submodule update --init --recursive, Installing submodules] -- cgit v1.2.3