dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 6de9559933df7621ed57b96a790c3c9149268e07
parent ec834fc35bbe92682bfc1d72d40fc16433f5133a
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu, 16 Apr 2020 21:03:42 +0200

Play videos from video sites directly

Diffstat:
M.local/bin/plumb | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/.local/bin/plumb b/.local/bin/plumb @@ -178,8 +178,7 @@ handle_target() { elif regeximatch "$t" '\.(pdf|ps|epub|djvu)$'; then zathura "$(fetch "$t")" elif regeximatch "$t" '(youtube\.|youtu\.be|vimeo\.com)'; then - cd ~/tmp && detach youtube-dl \ - -f '[height\<=?768][fps\<=?30]+bestaudio/best' "$t" + cd ~/tmp && detach mpv "$t" elif regeximatch "$t" '(smbc-comics\.com|xkcd\.com|jspowerhour\.com)'; then cd /tmp && detach comic "$t" elif regexmatch "$t" '10\.[0-9]*\/'; then