From e459d2c9b6448ae1a2e89bc1f1115a1ad4235dd0 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 31 May 2021 16:56:44 +0200 Subject: tridactyl: update, add mpvplay script --- .config/tridactyl/tridactylrc | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to '.config/tridactyl/tridactylrc') 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 tp fillcmdline tabopen -c pers bind tb fillcmdline tabopen -c bank bind ts fillcmdline tabopen -c shop -bind s fillcmdline tabopen search -bind n fillcmdline nativeopen -bind c fillcmdline recontain +bind s fillcmdline tabopen search +bind n fillcmdline nativeopen +bind c fillcmdline recontain bind back bind forward @@ -44,6 +44,10 @@ bind , nohlsearch " select all in cmdline unbind --mode=ex +unbind --mode=browser +unbind --mode=browser +unbind --mode=browser + 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 unbindurl 4chan.*.org j unbindurl 4chan.*.org k unbindurl 4chan.*.org x -unbindurl 4chan.*.org B +unbindurl 4chan.*.org set leavegithubalone false set blacklistkeys ["/","",";"] -- cgit 1.4.1