From: Amin Bandali Date: Sun, 15 May 2022 18:47:28 +0000 (-0400) Subject: * .config/tridactyl/tridactylrc: Add bindings for watching videos in mpv. X-Git-Url: https://git.shemshak.org/~bandali/configs/commitdiff_plain/c4c2ff4ebcfeda2603eef806193ef8d891035b9f * .config/tridactyl/tridactylrc: Add bindings for watching videos in mpv. --- diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc index d08127f..bb717e3 100644 --- a/.config/tridactyl/tridactylrc +++ b/.config/tridactyl/tridactylrc @@ -25,6 +25,11 @@ bind ; fillcmdline_notrail bind ;v hint -; video +command mpvmp4 js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('mpv --no-terminal --ytdl-format=mp4 ' + url)) +bind ;gv hint -W mpvmp4 + +bind ;gV js tri.excmds.exclaim_quiet('mpv --no-terminal --ytdl-format=mp4 ' + document.location.href) + unbind set hintfiltermode vimperator-reflow