aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/firefox/.config/tridactyl/tridactylrc
blob: 3c61c4e9cc1f1942c49145f5cf8238228b147261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
" vim: filetype=vim

" tridactyl config
" Ref: https://raw.githubusercontent.com/glacambre/.dotfiles/master/default/.config/tridactyl/tridactylrc
" Ref: https://raw.githubusercontent.com/BurntSushi/dotfiles/master/.config/tridactyl/tridactylrc

sanitize tridactyllocal tridactylsync

colourscheme gruvbox-dark-hard

alias save_rss jsb -p tri.native.run("r2e add '" + JS_ARG + "'") set rsscmd save_rss %u
alias gitclone jsb -p tri.native.run("git clone --depth=1 '" + JS_ARG + "' /home/tobyv/src/" + JS_ARG.split("/").slice(-1))
alias jse js 'use strict'; function $all(q, root=document) { return Array.from(root.querySelectorAll(q)) }; function $(q, root=document) { return root.querySelector(q) }; let $ex = (s) => tri.controller.acceptExCmd(s) ; let $set = (...args) => tri.config.set(...args);
alias jsep js -p 'use strict'; function $all(q, root=document) { return Array.from(root.querySelectorAll(q)) }; function $(q, root=document) { return root.querySelector(q) }; let $ex = (s) => tri.controller.acceptExCmd(s) ; let $set = (...args) => tri.config.set(...args);
alias video_with jse let video; if (document.activeElement.name == 'VIDEO') video = document.activeElement; else video = $all('video').find(v => !v.paused); if (!video) video = $('video');

set modeindicatormodes {"normal":"false","video":"false"}
set findcase smart
set smoothscroll true
set editorcmd alacritty -e tmux new -As tridactylrc nvim -S $XDG_DATA_HOME/nvim/session/tridactylrc.vim
set video_seek 5
set video_volume 0.05
set videomaps.h video_with video.currentTime -= Number(get('video_seek'))
set videomaps.j video_with video.volume -= Number(get('video_volume'))
set videomaps.k video_with video.volume += Number(get('video_volume'))
set videomaps.l video_with video.currentTime += Number(get('video_seek'))
set videomaps.l video_with video.currentTime += Number(get('video_seek'))
set videomaps.z mode normal
set videomaps.🕷🕷INHERITS🕷🕷 nmaps

unbind <C-f>
unbind s
unbind d
unbind f
bind <C-Space> hint
bind / fillcmdline find
bind ? fillcmdline find --reverse
bind n findnext
bind N findnext --reverse
bind <C-l> nohlsearch
bind j scrollline 5
bind k scrollline -5
bind J tabprev
bind K tabnext
bind x tabclose
bind gs fillcmdline open duckduckgo
bind zv composite js document.location.href | exclaim_quiet mpv --loop
bind gv mode video

bindurl ^https://docs.rs/[^/]+/\d+.\d+.\d+/[^/]+/ zz composite jsb tri.native.run('cat /home/tobyv/.config/firefox/userscripts/rustdoc-condensed.js') | js -p eval(JS_ARG.content)
bindurl ^https://www.youtube.com/watch\? v mode video

autocmd DocStart mail.google.com mode ignore
autocmd DocStart discordapp.com mode ignore
autocmd DocStart play.rust-lang.org mode ignore
autocmd DocLoad ^https://www.youtube.com/watch\? mode video
autocmd HistoryState https://jellyfin.tobyvin.dev/web/#!/video mode video

fixamo_quiet

guiset_quiet hoverlink right
guiset_quiet tabs count