aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-12-01 23:55:06 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2020-12-01 23:55:06 +0300
commit60c2cc122f2389d66be3868489aff59e61589ab7 (patch)
tree7455608a071ada8021bb00fb6b41102b83872cb1 /dotfiles
parenta604c075fc9b26998cd075230b37bbcb80c80d51 (diff)
downloadswayrice-60c2cc122f2389d66be3868489aff59e61589ab7.tar.gz
swayrice-60c2cc122f2389d66be3868489aff59e61589ab7.zip
mpv config
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/mimeo/associations.txt2
-rw-r--r--dotfiles/.config/mpv/mpv.conf11
2 files changed, 12 insertions, 1 deletions
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"