summary refs log tree commit diff
path: root/.config/tridactyl/tridactylrc
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-12-03 13:47:39 +0100
committerRobert Günzler <r@gnzler.io>2020-12-07 19:28:05 +0100
commite7328e9b7e842b2857aef682f6d3fc993c96eb27 (patch)
tree0442cc8b02593bcf0368bd226663ae3767b02971 /.config/tridactyl/tridactylrc
parent323c45966e430c460c009f8c56e132ca92826292 (diff)
tridactyl: various tweaks
* theme changes
* mpv binds
* 4chan rules
* remap J/K for TST
Diffstat (limited to '')
-rw-r--r--.config/tridactyl/tridactylrc34
1 files changed, 25 insertions, 9 deletions
diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc
index 6900202..b196ae2 100644
--- a/.config/tridactyl/tridactylrc
+++ b/.config/tridactyl/tridactylrc
@@ -1,6 +1,12 @@
 " vim: ft=vim
 " sanitise tridactyllocal tridactylsync
 
+" rebind j/k for TST
+reset j
+reset k
+bind J tabnext
+bind K tabprev
+
 set browser firefox-nightly
 set allowautofocus false
 set searchengine duckduckgo
@@ -34,8 +40,6 @@ bind n findnext 1
 bind N findnext -1
 bind <Space>, nohlsearch
 
-bind <Space>l fillcmdline urlmodify -g 
-
 " select all in cmdline
 unbind --mode=ex <C-a>
 
@@ -47,15 +51,17 @@ bindurl duckduckgo.com f hint -c [class*="result__url"]
 bindurl duckduckgo.com F hint -b -c [class*="result__url"]
 
 " hint: mpv/video
-bind gv composite get_current_url | !s mpv --profile=cache
-bind yv composite js navigator.clipboard.readText() | !s mpv --profile=cache
-bind ;v hint -W !s mpv --profile=cache
+bind gv js tri.native.run(`sh -c "notify-send 'tridactly > mpv' '${document.location.href}' && mpv '${document.location.href}'"`)
+bind yv composite getclip | js tri.native.run(`sh -c "notify-send 'tridactly > mpv' '${JS_ARG}' && mpv '${JS_ARG}'"`)
+bind ;v hint -W js -p tri.native.run(`sh -c "notify-send 'tridactly > mpv' '${JS_ARG}' && mpv '${JS_ARG}'"`)
+bind ;x hint -W js -p tri.native.run(`sh -c "notify-send 'tridactly > xap' '${JS_ARG}' && xap add -n '${JS_ARG}'"`)
+" bind ;v hint -W !s mpv --profile=cache
 
 " hint: other
-bind ;i hint -W !s imv
-bind ;e hint -W !s alacritty --class '__floating-tridactyledit' -e nvim
+bind ;i hint -W js -p tri.native.run(`sh -c "notify-send 'tridactly > imv' '${JS_ARG}' && imv '${JS_ARG}'"`)
+bind ;e hint -W js -p tri.native.run(`sh -c "notify-send 'tridactly > vim' '${JS_ARG}' && alacritty --class '__floating-tridactyledit' -e nvim '${JS_ARG}'"`)
 
-bind gp fillcmdline winopen -popup
+bind gp composite get_current_url | fillcmdline winopen -popup
 bind g1 tab 2
 bind g2 tab 3
 bind g3 tab 4
@@ -63,18 +69,20 @@ bind g4 tab 5
 
 " some autocommands that rewrite URLs
 " autocmd DocStart www.amazon.co.uk js tri.excmds.urlmodify("-t", "www", "smile")
-" autocmd DocStart *.solus-project.com js tri.excmds.urlmodify("-t", "solus-project.com", "getsol.us")
 " autocmd DocStart golang.org/pkg js tri.excmds.urlmodify("-t", "golang.org/pkg", "godoc.org")
 
 seturl typeform.com mode ignore
 seturl overleaf.com mode ignore
 seturl jel.ly.fish mode ignore
+seturl gather.town mode ignore
+seturl typingclub.com mode ignore
 
 " fix youtube
 seturl youtube.com noiframe true
 unbindurl youtube.com f
 bindurl youtube.com h hint
 bindurl youtube.com T tabopen ddg.gg
+bindurl youtube.com C recontain personal
 
 " fix reddit
 seturl reddit.com allowautofocus true
@@ -92,5 +100,13 @@ unbindurl reddit.com h
 unbindurl reddit.com x
 unbindurl reddit.com l
 
+unbindurl 4chan.org t
+unbindurl 4chan.org T
+unbindurl 4chan.org j
+unbindurl 4chan.org k
+unbindurl 4chan.org x
+unbindurl 4chan.org B
+unbindurl 4chan.org G
+
 set leavegithubalone false
 set blacklistkeys ["/","<Space>",";"]