From 004499c76b0b83b1d12bf11b4d7ea55323849750 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Wed, 15 Apr 2026 18:40:16 +0200 Subject: [PATCH] Add MPV configuration with YouTube subtitles support --- ansible/inventory/group_vars/desktop.yml | 4 ++++ dotfiles/desktop/.config/mpv/input.conf | 14 ++++++++++++++ dotfiles/desktop/.config/mpv/mpv.conf | 16 ++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 dotfiles/desktop/.config/mpv/input.conf create mode 100644 dotfiles/desktop/.config/mpv/mpv.conf diff --git a/ansible/inventory/group_vars/desktop.yml b/ansible/inventory/group_vars/desktop.yml index e40ed45..85f839d 100644 --- a/ansible/inventory/group_vars/desktop.yml +++ b/ansible/inventory/group_vars/desktop.yml @@ -170,6 +170,10 @@ desktop_common_dotfiles: src: .config/opencode/ dest: .config/opencode/ mode: preserve + - name: MPV config + src: .config/mpv/ + dest: .config/mpv/ + mode: preserve - name: Udiskie config src: .config/udiskie/ dest: .config/udiskie/ diff --git a/dotfiles/desktop/.config/mpv/input.conf b/dotfiles/desktop/.config/mpv/input.conf new file mode 100644 index 0000000..e2decee --- /dev/null +++ b/dotfiles/desktop/.config/mpv/input.conf @@ -0,0 +1,14 @@ +# Toggle fullscreen +f fullscreen + +# Toggle pause +Space cycle pause + +# Sottotitoli - delay +z add sub-delay -0.5 + +# Sottotitoli + delay +x add sub-delay +0.5 + +# Ciclo sottotitoli +j cycle sub diff --git a/dotfiles/desktop/.config/mpv/mpv.conf b/dotfiles/desktop/.config/mpv/mpv.conf new file mode 100644 index 0000000..65a438e --- /dev/null +++ b/dotfiles/desktop/.config/mpv/mpv.conf @@ -0,0 +1,16 @@ +# Formato video/audio - miglior qualità fino a 720p +ytdl-format=bestvideo[height<=?720]+bestaudio/best + +# Sottotitoli +sub-visibility=yes +slang=it,en + +# Download automatico sottotitoli (SRT) +ytdl-raw-options=write-subs=,write-auto-subs=,convert-subs=srt + +# Layout e stile +sub-pos=100 +sub-font-size=48 + +# Output +terminal=yes