From e7328e9b7e842b2857aef682f6d3fc993c96eb27 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 3 Dec 2020 13:47:39 +0100 Subject: tridactyl: various tweaks * theme changes * mpv binds * 4chan rules * remap J/K for TST --- .config/tridactyl/themes/r.css | 33 +++++++++++++-------------------- .config/tridactyl/tridactylrc | 34 +++++++++++++++++++++++++--------- 2 files changed, 38 insertions(+), 29 deletions(-) (limited to '.config/tridactyl') diff --git a/.config/tridactyl/themes/r.css b/.config/tridactyl/themes/r.css index 50912eb..525f1f4 100644 --- a/.config/tridactyl/themes/r.css +++ b/.config/tridactyl/themes/r.css @@ -1,22 +1,21 @@ /* vim: fdm=marker * */ :root.TridactylThemeR { - --r-accent: #005CAF; + --r-accent: #FAD689; /* rgb(250,214,137) */ --tridactyl-bg: #1c1c1c; --tridactyl-bg-second: #38383d; --tridactyl-fg: #f9f9fa; --tridactyl-of-bg: #005CAF; - /* --tridactyl-of-fg: ; */ - /* --tridactyl-hightlight-box-bg: ; */ - /* --tridactyl-hightlight-box-fg: ; */ + --tridactyl-of-fg: #f9f9fa; + --tridactyl-font-family: "Iosevka Sparkle", monospace; --tridactyl-font-family-sans: sans-serif; --tridactyl-font-size: 12pt !important; --tridactyl-small-font-size: 12pt; - --tridactyl-cmdl-bg: #1c1c1c; + --tridactyl-cmdl-bg: var(--tridactyl-bg); --tridactyl-cmdl-small-font-size: 12pt; - --tridactyl-cmplt-bg: #1c1c1c; + --tridactyl-cmplt-bg: var(--tridactyl-bg); --tridactyl-cmplt-small-font-size: 12pt; --tridactyl-header-first-bg: #333; @@ -26,20 +25,18 @@ --tridactyl-cmplt-border-top: 1px solid var(--tridactyl-photon-colours-in-content-category-header-background); - /* --tridactyl-url-fg: var(--tridactyl-photon-colours-code-green); */ - /* --tridactyl-url-bg: var(--tridactyl-bg); */ - - /* --tridactyl-of-fg: var(--tridactyl-photon-colours-warning-color); */ - /* --tridactyl-of-bg: var(--tridactyl-photon-colours-warning-background-color); */ + --tridactyl-url-fg: var(--tridactyl-of-bg); + --tridactyl-url-bg: var(--tridactyl-bg); + --tridactyl-url-text-decoration: none; /* Hints are not photon coloured. Feel free to experiment with that */ - --tridactyl-hintspan-fg: white; - --tridactyl-hintspan-bg: #204e8a; + --tridactyl-hintspan-fg: var(--tridactyl-of-fg); + --tridactyl-hintspan-bg: var(--tridactyl-of-bg); - --tridactyl-hint-active-fg: #333; - --tridactyl-hint-active-bg: #88ff00; - --tridactyl-hint-active-outline: 1px solid #000; + --tridactyl-hint-active-fg: var(--tridactyl-fg); + --tridactyl-hint-active-bg: rgba(250,214,137, 0.75); + --tridactyl-hint-active-outline: 1px solid var(--r-accent); --tridactyl-hint-bg: rgba(13, 31, 54, 0.25); --tridactyl-hint-outline: 1px solid var(--tridactyl-hintspan-bg); @@ -87,10 +84,6 @@ border-color: var(--r-accent); } -:root.TridactylThemeR.TridactylOwnNamespace a { - color: var(--r-accent); -} - /* These rules have greater specificity than the rules applying the variables * above, which causes *issues*. */ 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 , nohlsearch -bind l fillcmdline urlmodify -g - " select all in cmdline unbind --mode=ex @@ -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 ["/","",";"] -- cgit 1.4.1