From dbc2aaed26e5c845bc15bc98bd768f8d960684f8 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Fri, 16 Jul 2021 11:29:24 +0300 Subject: [PATCH] Only add vulkan and wayland stuff for mirkwood mpv --- home/.config/mpv/mpv.conf | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/home/.config/mpv/mpv.conf b/home/.config/mpv/mpv.conf index be2d89c..26d1916 100644 --- a/home/.config/mpv/mpv.conf +++ b/home/.config/mpv/mpv.conf @@ -9,8 +9,10 @@ hwdec-codecs=all {%@@ if profile == "Mirkwood" @@%} gpu-context=wayland -{%@@ elif profile == "Rivendell" @@%} -ao=alsa +{%@@ endif @@%} + +{%@@ if profile == "mko-laptop" @@%} +script=~/bin/mpris.so {%@@ endif @@%} ############# @@ -104,8 +106,11 @@ ytdl-format="bestvideo[height<=2160]+bestaudio/best[height<=2160]" [best] ytdl-format="bestvideo+bestaudio" + +{%@@ if profile == "Mirkwood" @@%} # Vulkan hwdec profile [vulkan] gpu-api=vulkan gpu-context=waylandvk hwdec=vaapi-copy +{%@@ endif @@%}