diff options
author | Amin Bandali <bandali@kelar.org> | 2022-05-15 14:47:28 -0400 |
---|---|---|
committer | Amin Bandali <bandali@kelar.org> | 2022-05-19 22:20:03 -0400 |
commit | c4c2ff4ebcfeda2603eef806193ef8d891035b9f (patch) | |
tree | c1bc0c5a8962b5e8f8f76dff6fea2628f401bc5c | |
parent | 48ba575760a21292cba237993a4e65bab2f0635e (diff) | |
download | configs-c4c2ff4ebcfeda2603eef806193ef8d891035b9f.tar.gz configs-c4c2ff4ebcfeda2603eef806193ef8d891035b9f.tar.xz configs-c4c2ff4ebcfeda2603eef806193ef8d891035b9f.zip |
* .config/tridactyl/tridactylrc: Add bindings for watching videos in mpv.
-rw-r--r-- | .config/tridactyl/tridactylrc | 5 |
1 files changed, 5 insertions, 0 deletions
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 ;<Space> 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 <C-f> set hintfiltermode vimperator-reflow |