summary refs log tree commit diff
path: root/.config/tridactyl
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2021-05-31 16:56:44 +0200
committerRobert Günzler <r@gnzler.io>2021-05-31 16:56:44 +0200
commite459d2c9b6448ae1a2e89bc1f1115a1ad4235dd0 (patch)
tree5fe8d30f0033c2397521914681bfcc7ba987eac6 /.config/tridactyl
parent48c6c952a9fccc1cc46f6cb8d817d5a4266a7c10 (diff)
tridactyl: update, add mpvplay script
Diffstat (limited to '.config/tridactyl')
-rw-r--r--.config/tridactyl/tridactylrc23
1 files changed, 13 insertions, 10 deletions
diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc
index 458b635..5b75bb1 100644
--- a/.config/tridactyl/tridactylrc
+++ b/.config/tridactyl/tridactylrc
@@ -11,7 +11,7 @@ set browser firefox-nightly
 set allowautofocus false
 set searchengine duckduckgo
 set tabopencontaineraware true
-set editorcmd alacritty -t tridactyledit -e nvim
+set editorcmd foot -T tridactyl-editor -c /home/robert/.config/foot/float.ini -- nvim
 set historyresults 50
 set newtabfocus page
 set allowautofocus false
@@ -29,9 +29,9 @@ bind <Space>tp fillcmdline tabopen -c pers
 bind <Space>tb fillcmdline tabopen -c bank
 bind <Space>ts fillcmdline tabopen -c shop
 
-bind <space>s fillcmdline tabopen search
-bind <space>n fillcmdline nativeopen
-bind <space>c fillcmdline recontain
+bind <Space>s fillcmdline tabopen search
+bind <Space>n fillcmdline nativeopen
+bind <Space>c fillcmdline recontain
 
 bind <C-o> back
 bind <C-i> forward
@@ -44,6 +44,10 @@ bind <Space>, nohlsearch
 " select all in cmdline
 unbind --mode=ex <C-a>
 
+unbind --mode=browser <C-,>
+unbind --mode=browser <C-6>
+unbind --mode=browser <CS-6>
+
 bindurl news.ycombinator.com ;c hint -fr \d+\scomments
 bindurl news.ycombinator.com f hint -c [class*="storylink"]
 
@@ -52,10 +56,9 @@ bindurl duckduckgo.com f hint -c [class*="result__url"]
 bindurl duckduckgo.com F hint -b -c [class*="result__url"]
 
 " hint: mpv/video
-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 gv js tri.native.run(`mpvplay ${document.location.href}`)
+bind yv composite getclip | js tri.native.run(`mpvplay ${JS_ARG}`)
+bind ;v hint -W js -p tri.native.run(`mpvplay ${JS_ARG}`)
 " bind ;v hint -W !s mpv --profile=cache
 
 " hint: other
@@ -102,11 +105,11 @@ unbindurl reddit.com h
 unbindurl reddit.com x
 unbindurl reddit.com l
 
-unbindurl 4chan.*.org T
+unbindurl 4chan.*.org <S-t>
 unbindurl 4chan.*.org j
 unbindurl 4chan.*.org k
 unbindurl 4chan.*.org x
-unbindurl 4chan.*.org B
+unbindurl 4chan.*.org <S-b>
 
 set leavegithubalone false
 set blacklistkeys ["/","<Space>",";"]