From 60c2cc122f2389d66be3868489aff59e61589ab7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Tue, 1 Dec 2020 23:55:06 +0300 Subject: mpv config --- dotfiles/.config/mimeo/associations.txt | 2 +- dotfiles/.config/mpv/mpv.conf | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 dotfiles/.config/mpv/mpv.conf (limited to 'dotfiles/.config') diff --git a/dotfiles/.config/mimeo/associations.txt b/dotfiles/.config/mimeo/associations.txt index c62c9f3..5b3f604 100644 --- a/dotfiles/.config/mimeo/associations.txt +++ b/dotfiles/.config/mimeo/associations.txt @@ -1,4 +1,4 @@ -mpv --input-ipc-server=/tmp/mpvsock --ytdl-format="bestvideo[height<=?1440]+bestaudio" -quiet %U >/dev/null 2>&1 +mpv -quiet %U >/dev/null 2>&1 ^https?://(www.)?youtube.com/watch\?.*v= ^https?://youtu.be/ ^https?://.*\.mkv diff --git a/dotfiles/.config/mpv/mpv.conf b/dotfiles/.config/mpv/mpv.conf new file mode 100644 index 0000000..b9acd0f --- /dev/null +++ b/dotfiles/.config/mpv/mpv.conf @@ -0,0 +1,11 @@ +# Use wayland shared memory. For some reason gpu rendered output looks garbled +# on my second monitor on sway +vo=gpu +hwdec=auto + +alang=ja,jpn,en,eng,es,spa,ru,rus +slang=en,eng,es,spa,ru,rus + +input-ipc-server=/tmp/mpvsock + +ytdl-format="bestvideo[height<=?1440]+bestaudio" -- cgit v1.2.3