From d01057567104cfcd0ac1018703830f7c65f6aa6f Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Sat, 13 Jun 2020 15:07:36 -0700 Subject: [PATCH] Install Tridactyl --- desktop.conf.yaml | 1 + tridactyl/tridactylrc | 46 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 tridactyl/tridactylrc diff --git a/desktop.conf.yaml b/desktop.conf.yaml index b17231b..9f5dae6 100644 --- a/desktop.conf.yaml +++ b/desktop.conf.yaml @@ -5,6 +5,7 @@ ~/.config/git/config-role: git/config-personal ~/.config/i3: i3/ ~/.config/polybar: polybar/ + ~/.config/tridactyl: tridactyl/ ~/.config/qutebrowser: qutebrowser/ ~/.local/share/qutebrowser/userscripts: qutebrowser/userscripts ~/.xinitrc: X/.xinitrc diff --git a/tridactyl/tridactylrc b/tridactyl/tridactylrc new file mode 100644 index 0000000..21e159f --- /dev/null +++ b/tridactyl/tridactylrc @@ -0,0 +1,46 @@ +" Clear existing settings before loading these new ones. This prevents config +" drift when using :set commands in-browser. +sanitize tridactyllocal tridactylsync + +set newtab about:blank + +set editorcmd urxvt -e nvim + +" Use Tridactyl search instead of native Firefox search +bind / fillcmdline find +bind ? fillcmdline find -? +bind n findnext 1 +bind N findnext -1 +bind ; nohlsearch +set findcase smart + +bind j scrollline 1 +bind k scrollline -1 +bind J tabnext +bind K tabprev +bind gh tabmove -1 +bind gl tabmove +1 + +" This can only cause problems with CapsLock and zz +unbind ZZ + +" Dvorak +set hintchars dhtnsaoeuifgcrlpybmwvzqjkx +set hintfiltermode vimperator + +set searchurls.archwiki https://wiki.archlinux.org/index.php?search=%s +set searchurls.aur https://aur.archlinux.org/packages/?K=%s +set searchurls.dict https://www.dictionary.com/browse/%s +set searchurls.godev https://pkg.go.dev/search?q=%s +set searchurls.godoc https://godoc.org/?q=%s +set searchurls.gopkg https://golang.org/pkg/%s +set searchurls.mc https://minecraft.gamepedia.com/index.php?search=%s +set searchurls.mdn https://developer.mozilla.org/search?q=%s +set searchurls.poke https://bulbapedia.bulbagarden.net/w/index.php?search=%s +set searchurls.py2 https://docs.python.org/2/search.html?q=%s +set searchurls.py3 https://docs.python.org/3/search.html?q=%s +set searchurls.rdoc https://rubyapi.org/2.7/o/s?q=%s +set searchurls.thesaurus https://www.thesaurus.com/browse/%s +set searchurls.ud https://www.urbandictionary.com/define.php?term=%s + +set searchengine ddg