* .config/tridactyl/tridactylrc: Add bindings for watching videos in mpv.
[~bandali/configs] / .config / tridactyl / tridactylrc
1 bind n scrollline 2
2 bind p scrollline -2
3
4 bind 0 scrollto 0 x
5 bind - scrollto 100 x
6
7 bind P tabprev
8 bind N tabnext
9
10 bind d scrollpage 0.5
11 bind u scrollpage -0.5
12 unbind <C-d>
13 unbind <C-u>
14
15 bind x tabclose
16 bind X undo
17 bind <C-S> stop
18
19 bind gd tabduplicate
20 bind gw tabdetach
21
22 bind O fillcmdline bmarks
23
24 bind ;<Space> fillcmdline_notrail
25
26 bind ;v hint -; video
27
28 command mpvmp4 js -p tri.excmds.shellescape(JS_ARG).then(url => tri.excmds.exclaim_quiet('mpv --no-terminal --ytdl-format=mp4 ' + url))
29 bind ;gv hint -W mpvmp4
30
31 bind ;gV js tri.excmds.exclaim_quiet('mpv --no-terminal --ytdl-format=mp4 ' + document.location.href)
32
33 unbind <C-f>
34
35 set hintfiltermode vimperator-reflow
36 set hintnames numeric
37 set urlparenttrailingslash false
38
39 set browser abrowser
40 " set newtab https://bandali.eu.org
41
42 seturl warrior.uwaterloo.ca noiframe true
43
44 " autocmd DocStart www.reddit.com js tri.excmds.urlmodify("-t", "www", "old")