summary refs log tree commit diff
path: root/.config/tridactyl
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2020-01-26 17:16:07 +0100
committerRobert Günzler <r@gnzler.io>2020-01-26 18:00:59 +0100
commitf5d56602df70950de6b7d40966b00c9939c81763 (patch)
treeb50ffeb5496fe3525cc1bab2629389ced95435b7 /.config/tridactyl
Intial commit of v2
See https://drewdevault.com/2019/12/30/dotfiles.html
Diffstat (limited to '.config/tridactyl')
-rw-r--r--.config/tridactyl/themes/r.css59
-rw-r--r--.config/tridactyl/tridactylrc105
2 files changed, 164 insertions, 0 deletions
diff --git a/.config/tridactyl/themes/r.css b/.config/tridactyl/themes/r.css
new file mode 100644
index 0000000..9017468
--- /dev/null
+++ b/.config/tridactyl/themes/r.css
@@ -0,0 +1,59 @@
+:root.TridactylThemeR {
+    --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-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-small-font-size: 12pt;
+    --tridactyl-cmplt-bg: #1c1c1c;
+    --tridactyl-cmplt-small-font-size: 12pt;
+}
+
+/* :root.TridactylThemeR body { */
+/* } */
+
+: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 { */
+/*     margin-left: 2px; */
+/* } */
+:root.TridactylThemeR #tridactyl-colon::before {
+    content: " > ";
+}
+
+/* :root.TridactylThemeR #completions .focused, */
+/* :root.TridactylThemeR #completions .focused .url { */
+/*     background: var(--tridactyl-bg-second); */
+/*     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 #changelog { */
+/*     background: var(--tridactyl-bg-second); */
+/* } */
diff --git a/.config/tridactyl/tridactylrc b/.config/tridactyl/tridactylrc
new file mode 100644
index 0000000..5ea41a0
--- /dev/null
+++ b/.config/tridactyl/tridactylrc
@@ -0,0 +1,105 @@
+" vim: ft=vim
+" sanitise tridactyllocal tridactylsync
+
+set browser firefox-nightly
+set allowautofocus false
+set searchengine duckduckgo
+set tabopencontaineraware true
+set editorcmd alacritty -t tridactyledit -e nvim
+set historyresults 50
+set newtabfocus page
+set allowautofocus false
+
+colors r
+
+" remove annoying binds
+unbind s
+unbind <C-f>
+unbind <C-a>
+unbind <F1>
+
+bind <Space>tw fillcmdline tabopen -c wee
+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 / fillcmdline find
+bind n findnext 1
+bind N findnext -1
+bind <Space>, nohlsearch
+
+bind <Space>l fillcmdline urlmodify -g 
+
+" select all in cmdline
+unbind --mode=ex <C-a>
+
+bindurl news.ycombinator.com ;c hint -fr \d+\scomments
+bindurl news.ycombinator.com f hint -c [class*="storylink"]
+
+" better result hinting on ddg
+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
+
+" hint: other
+bind ;i hint -W !s imv
+bind ;e hint -W !s alacritty --class '__floating-tridactyledit' -e nvim
+
+bind gp fillcmdline winopen -popup
+bind g1 tab 2
+bind g2 tab 3
+bind g3 tab 4
+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")
+" autocmd DocStart typeform.com mode ignore
+
+" autocontainers
+" aucon meetup.com personal
+" aucon trello.com personal
+" aucon reddit.com weeb
+" aucon kitsu.io weeb
+" aucon youtube.com weeb
+" aucon shanaproject.com weeb
+" aucon kum4.cf weeb
+" aucon nyaa.si weeb
+" aucon amazon.(com|de|co.jp|co.uk) shopping
+" aucon flowdock.com work
+" aucon calamari.io work
+
+seturl overleaf.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
+
+" 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 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
+
+set leavegithubalone false
+set blacklistkeys ["/","<Space>",";"]