mirror of
https://github.com/fscotto/infra.git
synced 2026-05-30 15:39:58 +00:00
Add MPV configuration with YouTube subtitles support
This commit is contained in:
@@ -170,6 +170,10 @@ desktop_common_dotfiles:
|
|||||||
src: .config/opencode/
|
src: .config/opencode/
|
||||||
dest: .config/opencode/
|
dest: .config/opencode/
|
||||||
mode: preserve
|
mode: preserve
|
||||||
|
- name: MPV config
|
||||||
|
src: .config/mpv/
|
||||||
|
dest: .config/mpv/
|
||||||
|
mode: preserve
|
||||||
- name: Udiskie config
|
- name: Udiskie config
|
||||||
src: .config/udiskie/
|
src: .config/udiskie/
|
||||||
dest: .config/udiskie/
|
dest: .config/udiskie/
|
||||||
|
|||||||
14
dotfiles/desktop/.config/mpv/input.conf
Normal file
14
dotfiles/desktop/.config/mpv/input.conf
Normal file
@@ -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
|
||||||
16
dotfiles/desktop/.config/mpv/mpv.conf
Normal file
16
dotfiles/desktop/.config/mpv/mpv.conf
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user