diff options
Diffstat (limited to '.config/tridactyl')
| -rw-r--r-- | .config/tridactyl/themes/r.css | 84 | ||||
| -rw-r--r-- | .config/tridactyl/tridactylrc | 141 | ||||
| -rw-r--r-- | .config/tridactyl/tridactylrc.default | 38 | ||||
| -rw-r--r-- | .config/tridactyl/tridactylrc.work | 4 |
4 files changed, 267 insertions, 0 deletions
diff --git a/.config/tridactyl/themes/r.css b/.config/tridactyl/themes/r.css new file mode 100644 index 0000000..05b47a6 --- /dev/null +++ b/.config/tridactyl/themes/r.css @@ -0,0 +1,84 @@ +/* vim: fdm=marker + * */ +:root.TridactylThemeR { + --tridactyl-fg: #f9f9fa; + --tridactyl-bg: #2a2a2e; + + --tridactyl-scrollbar-color: var(--tridactyl-fg); + + --tridactyl-cmdl-fg: #d7d7db; + --tridactyl-cmdl-bg: var(--tridactyl-bg); + + --tridactyl-header-first-bg: #38383d; + --tridactyl-header-second-bg: #2a2a2e; + --tridactyl-header-third-bg: #0c0c0d; + + --tridactyl-cmplt-border-top: 1px solid #2a2a2e; + + --tridactyl-url-fg: #86de74; + --tridactyl-url-bg: var(--tridactyl-bg); + + --tridactyl-of-fg: #fce19f; + --tridactyl-of-bg: var(--tridactyl-bg); + + --tridactyl-hintspan-fg: #f9f9fa; + --tridactyl-hintspan-bg: rgb(185, 142, 255); + + --tridactyl-hint-fg: var(--tridactyl-hintspan-fg); + --tridactyl-hint-bg: rgba(185, 142, 255, 0.15); + --tridactyl-hint-outline: 1px solid var(--tridactyl-hintspan-bg); + + --tridactyl-hint-active-fg: var(--tridactyl-hint-fg); + --tridactyl-hint-active-bg: #fff89e; + --tridactyl-hint-active-outline: 2px solid #fff89e; + + + --tridactyl-highlight-box-fg: var(--tridactyl-bg); + --tridactyl-highlight-box-bg: var(--tridactyl-fg); +} + +:root.TridactylThemeR.TridactylOwnNamespace input[id^="spoiler"] ~ .spoiler { + border-color: var(--tridactyl-bg); +} + +:root.TridactylThemeR.TridactylOwnNamespace a { + color: var(--tridactyl-hintspan-bg); +} + +:root.TridactylThemeR #command-line-holder { + order: 1; +} + +:root.TridactylThemeR #completions { + order: 2; + border-top: 1px solid var(--tridactyl-complt-bg); +} + +:root.TridactylThemeR #completions .sectionHeader { + display: none; +} + +:root.TridactylThemeR #tridactyl-colon::before { + margin-left: 2px; + content: " > "; +} + +:root.TridactylThemeR #completions .focused, +:root.TridactylThemeR #completions .focused .url { + color: var(--tridactyl-hintspan-bg); + background: var(--tridactyl-hint-bg); + text-decoration: italic; +} + +:root.TridactylThemeR #cmdline_iframe { + position: fixed !important; + bottom: unset; + top: -1px !important; + left: 0% !important; + box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 15px !important; + /* opacity: 0.9; */ +} + +:root.TridactylThemeR.TridactylOwnNamespace input[id^="spoiler"] ~ .spoiler { + border-color: var(--tridactyl-hintspan-bg); +} diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc new file mode 100644 index 0000000..526b7eb --- /dev/null +++ b/.config/tridactyl/tridactylrc @@ -0,0 +1,141 @@ +" vim: ft=vim +sanitise tridactyllocal tridactylsync +colors r + +set browser librewolf +set allowautofocus false +set searchengine duckduckgonoai +set editorcmd foot -a foot-float -T tridactyl-editor -- nvim +set historyresults 50 +" set newtab https://html.duckduckgo.com +set allowautofocus true +set newtabfocus page +set leavegithubalone true +" set blacklistkeys ["/","<Space>",";"] + +set modeindicator true +set modeindicatorshowkeys true + +" remove annoying binds +unbind <C-f> +unbind <C-a> +unbind --mode=ex <C-a> " select all in cmdline +unbind --mode=browser <C-,> + +bind n findnext 1 +bind N findnext -1 + +" hint: mpv/video +set exaliases.mpvsafe js -p tri.excmds.shellescape(JS_ARG).then(u => tri.excmds.exclaim_quiet(`play-mpv ${u}`)) +bind gv composite get_current_url | mpvsafe +bind yv composite getclip | mpvsafe +bind ;v hint -W mpvsafe + +"bind ;e hint -hW js -p tri.excmds.exclaim_quiet(`${tri.config.get('editorcmd')} /tmp/tridactl.${document.location.hostname}.txt '+normal!i${JS_ARG}'`) + +set exaliases.imgsafe js -p tri.excmds.shellescape(JS_ARG).then(u => tri.excmds.exclaim_quiet(`fyi 'tridactyl::mvi' ${u} && mvi ${u}`)) +bind ;i composite hint -Jpipe img | js -p JS_ARG.src | imgsafe + +bind gp composite get_current_url | winopen -popup +bind g1 tab 2 +bind g2 tab 3 +bind g3 tab 4 +bind g4 tab 5 +bind gb tab # + +# mapswap +command mapswap js tri.excmds.tabopen("https://mapswap.trailsta.sh/swap/#type="+(()=>{let q=x=>document.querySelector(x);return q('.leaflet-container')?'l':q('.maplibregl-map')||q('.mapboxgl-map')?'m':q('.ol-viewport')?'ol':''})()+"&url="+encodeURIComponent(window.location)) +bind gms mapswap + +" hackernews hinting +bindurl news.ycombinator.com ;c hint -fr \d+\scomments +bindurl news.ycombinator.com gr hint -c [class*="storylink"] + +" ddg result hinting +bindurl duckduckgo.com gr hint -c article > div > h2 + +" fix github +unbindurl github.com / + +" fix gitlab +unbindurl gitlab.freedesktop.org / + +" fix youtube +seturl youtube.com noiframe true +unbindurl youtube.com f +unbindurl youtube.com 1 +unbindurl youtube.com 2 +unbindurl youtube.com 3 +unbindurl youtube.com 4 +unbindurl youtube.com 5 +unbindurl youtube.com 6 +unbindurl youtube.com 7 +unbindurl youtube.com 8 +unbindurl youtube.com 9 +unbindurl youtube.com <Space> +bindurl youtube.com h hint +bindurl youtube.com T tabopen ddg.gg +bindurl youtube.com C recontain personal + +" fix twitch +unbindurl twitch.tv <Space> + +" fix reddit +seturl reddit.com allowautofocus true +unbindurl reddit.com <Escape> +unbindurl reddit.com j +unbindurl reddit.com k +unbindurl reddit.com N +unbindurl reddit.com P +unbindurl reddit.com n +unbindurl reddit.com p +unbindurl reddit.com a +unbindurl reddit.com z +unbindurl reddit.com c +" unbindurl reddit.com r +unbindurl reddit.com s +unbindurl reddit.com h +unbindurl reddit.com x +unbindurl reddit.com l + +" fix 4chan +unbindurl boards.4chan.*.org x +unbindurl boards.4chan.*.org T +unbindurl boards.4chan.*.org B +unbindurl boards.4chan.*.org n +unbindurl boards.4chan.*.org p +unbindurl boards.4chan.*.org F +unbindurl boards.4chan.*.org W +unbindurl boards.4chan.*.org <C-j> +unbindurl boards.4chan.*.org <C-k> + +" fix nebula +unbindurl nebula.tv f +unbindurl nebula.tv k +unbindurl nebula.tv m +unbindurl nebula.tv c +unbindurl nebula.tv s + +" fix zigdocs +unbindurl ziglang.org s + +bindurl wiki.openstreetmap.org --mode=normal E editor +bindurl wiki.openstreetmap.org --mode=input E editor +bindurl wikipedia.org --mode=normal E editor +bindurl wikipedia.org --mode=input E editor + +" start in ignore mode +blacklistadd console.hetzner.cloud/console +blacklistadd docs.google.com +blacklistadd gather.town +blacklistadd monkeytype.com +blacklistadd typeform.com +blacklistadd typingclub.com +blacklistadd maplibre.org +blacklistadd excalidraw.com + +" almost fully disable tridactyl +seturl localhost* superignore true + +" put autocontains into the per-profile config +js tri.native.getProfile().then(p => tri.excmds.source_quiet(`~/.config/tridactyl/tridactylrc.${last(p.Path.split('.'))}`)) diff --git a/.config/tridactyl/tridactylrc.default b/.config/tridactyl/tridactylrc.default new file mode 100644 index 0000000..e505eec --- /dev/null +++ b/.config/tridactyl/tridactylrc.default @@ -0,0 +1,38 @@ +autocontain -u ^https?://www\.google\.com/(maps|mail) google +autocontain -s lh3\.google\.com google +autocontain -s accounts\.google\.com google +autocontain -s myaccount\.google\.com google +autocontain -s myadcenter\.google\.com google +autocontain -s myactivity\.google\.com google +autocontain -s calendar\.google\.com google +autocontain -s maps\.google\.com google +autocontain -s gmail\.com google +autocontain -s mail\.google\.com google +autocontain -s photos\.google\.com google +autocontain -s photos\.fife\.usercontent\.google\.com google +autocontain -s takeout\.google\.com google +autocontain -s timeline\.google\.com google +autocontain -s youtube\.com google +autocontain -s youtu\.be google +autocontain -s docs\.google\.com google +autocontain -s takeout\.google\.com google +autocontain -s cloud\.google\.com google +autocontain -s lens\.google\.com google +autocontain -s lens\.google\.com google +autocontain -s chat\.google\.com google +autocontain -s docs\.google\.com google +autocontain -s takeout-.*\.google\.com google +autocontain -s drive\.google\.com google + +autocontain -s banking\.dkb\.de banking +autocontain -s app\.n26\.com banking + +autocontain -s amazon\.(com|de|co\.jp) amazon + +autocontain -s bakabt\.me weeb +autocontain -s nyaa\.si weeb +autocontain -s feralhosting\.com weeb +autocontain -s reddit\.com weeb +autocontain -s kitsu\.app weeb +autocontain -s trakt\.tv weeb +autocontain -s anilist\.co weeb diff --git a/.config/tridactyl/tridactylrc.work b/.config/tridactyl/tridactylrc.work new file mode 100644 index 0000000..93b6f33 --- /dev/null +++ b/.config/tridactyl/tridactylrc.work @@ -0,0 +1,4 @@ +blacklistadd linear.app +bind gm tab meet.google.com +unbindurl meet\.google\.com --mode=normal <C-d> +" blacklistadd meet.google.com |