From f712f4131cf26571bded1074ef749ac85799c9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Sun, 1 Nov 2020 14:01:12 +0300 Subject: limit youtube video quality to 1440p --- dotfiles/.config/mimeo/associations.txt | 2 +- dotfiles/.config/newsboat/config | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'dotfiles') diff --git a/dotfiles/.config/mimeo/associations.txt b/dotfiles/.config/mimeo/associations.txt index 9a666ec..c62c9f3 100644 --- a/dotfiles/.config/mimeo/associations.txt +++ b/dotfiles/.config/mimeo/associations.txt @@ -1,4 +1,4 @@ -mpv --input-ipc-server=/tmp/mpvsock -quiet %U >/dev/null 2>&1 +mpv --input-ipc-server=/tmp/mpvsock --ytdl-format="bestvideo[height<=?1440]+bestaudio" -quiet %U >/dev/null 2>&1 ^https?://(www.)?youtube.com/watch\?.*v= ^https?://youtu.be/ ^https?://.*\.mkv diff --git a/dotfiles/.config/newsboat/config b/dotfiles/.config/newsboat/config index 0854bbe..1e86e2c 100644 --- a/dotfiles/.config/newsboat/config +++ b/dotfiles/.config/newsboat/config @@ -30,6 +30,6 @@ color listfocus_unread yellow default bold color info red black bold color article cyan default -browser mimeo +browser "setsid mimeo %u" macro , open-in-browser -macro c set browser "copy(){ printf '%s' $1 | wl-copy ;}; copy "; open-in-browser ; set browser mimeo +#macro c set browser "copy(){ printf '%s' $1 | wl-copy ;}; copy "; open-in-browser ; set browser mimeo -- cgit v1.2.3