diff --git a/SwarselSystems.org b/SwarselSystems.org index b37fa1f..7048d9d 100644 --- a/SwarselSystems.org +++ b/SwarselSystems.org @@ -14823,7 +14823,7 @@ This is the configuration file for tridactyl, which provides keyboard-driven nav The =command= command can be supplied with a =-p= flag that will take a single argmuent which is exposed as =JS_ARG=. I use this in a function that switches to an open tab if it exists and otherwise creates it. -#+begin_src :tangle programs/firefox/tridactyl/tridactylrc :mkdirp yes +#+begin_src config :tangle programs/firefox/tridactyl/tridactylrc :mkdirp yes sanitise tridactyllocal tridactylsync @@ -14842,6 +14842,7 @@ set searchurls.hm https://home-manager-options.extranix.com/?query= set completions.Tab.statusstylepretty true set hintfiltermode vimperator-reflow set hintnames numeric +unbind --mode=hint " Binds bind buffer # @@ -14950,7 +14951,7 @@ autocmd DocStart vc-impimba-1.m.imp.ac.at/ui/webconsole mode ignore #+end_src ** tridactyl theme -#+begin_src :tangle programs/firefox/tridactyl/themes/swarsel.css :mkdirp yes +#+begin_src config :tangle programs/firefox/tridactyl/themes/swarsel.css :mkdirp yes :root { @@ -15115,6 +15116,7 @@ autocmd DocStart vc-impimba-1.m.imp.ac.at/ui/webconsole mode ignore #+end_src + ** Waybar style.css :PROPERTIES: :CUSTOM_ID: h:77b1c523-5074-4610-b320-90af95e6134d diff --git a/programs/firefox/tridactyl/themes/swarsel.css b/programs/firefox/tridactyl/themes/swarsel.css new file mode 100644 index 0000000..2c20123 --- /dev/null +++ b/programs/firefox/tridactyl/themes/swarsel.css @@ -0,0 +1,160 @@ +:root { + + --base00: #1D252C; + --base01: #171D23; + --base02: #5EC4FF; + --base03: #566C7D; + --base04: #5EC4FF; + --base05: #A0B3C5; + --base06: #C06ECE; + --base07: #A0B3C5; + --base08: #D95468; + --base09: #FFA880; + --base0A: #5EC4FF; + --base0B: #8BD49C; + --base0C: #008B94; + --base0D: #5EC4FF; + --base0E: #C06ECE; + --base0F: #5EC4FF; + + --tridactyl-def-fg: var(--base02); + --tridactyl-cmdl-bg: var(--base00); + --tridactyl-cmdl-fg: var(--base0C); + + --tridactyl-font-family: "San Francisco", sans-serif; + + --tridactyl-cmdl-font-size: 1.5rem; + --tridactyl-cmdl-line-height: 1.5; + + --tridactyl-cmplt-option-height: 1.4em; + --tridactyl-cmplt-font-size: var(--tridactyl-small-font-size); + --tridactyl-cmplt-border-top: unset; + + --tridactyl-status-font-size: 9px; + --tridactyl-status-font-family: "Fira Code", monospace; + --tridactyl-status-border: 1px var(--tridactyl-fg) solid; + + --tridactyl-header-font-size: var(--tridactyl-small-font-size); + --tridactyl-header-font-weight: 200; + --tridactyl-header-border-bottom: unset; + + --tridactyl-hintspan-font-size: var(--tridactyl-font-size); + --tridactyl-hint-active-fg: none; + +} + +:root #command-line-holder { + order: 1; + border: 2px solid var(--tridactyl-cmdl-fg); + color: var(--tridactyl-cmdl-bg); +} + +:root #tridactyl-input { + width: 90%; + padding: 1rem; + color: var(--tridactyl-def-fg); +} + +:root #completions table { + font-size: 0.8rem; + font-weight: 200; + border-spacing: 0; + table-layout: fixed; + padding: 1rem; + padding-top: 0; +} + +:root #completions > div { + max-height: calc(20 * var(--tridactyl-cmplt-option-height)); + min-height: calc(10 * var(--tridactyl-cmplt-option-height)); +} + +/* COMPLETIONS */ + +:root #completions { + font-weight: 200; + order: 2; + color: var(--tridactyl-def-fg); + background: var(--tridactyl-cmdl-bg); + +} + +/* Olie doesn't know how CSS inheritance works */ +:root #completions .HistoryCompletionSource { + max-height: unset; + min-height: unset; +} + +:root #completions .HistoryCompletionSource table { + width: 100%; + font-size: 9pt; + border-spacing: 0; + table-layout: fixed; +} + +/* redundancy 2: redundancy 2: more redundancy */ +:root #completions .BmarkCompletionSource { + max-height: unset; + min-height: unset; +} + +:root #completions table tr { white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +:root #completions .url { + background: var(--tridactyl-cmdl-bg); +} + +:root #completions .focused { + background: #44391F; +} +:root #completions .focused .url { + background: #44391F; +} + +:root #completions .BufferCompletionSource table { + width: unset; + font-size: unset; + border-spacing: unset; + table-layout: unset; +} + +:root #completions table tr { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +:root #completions .sectionHeader { + background: unset; + padding: 1rem !important; + padding-left: unset; + padding-bottom: 0.2rem; +} + +:root #cmdline_iframe { + position: fixed !important; + bottom: unset; + top: 25% !important; + left: 10% !important; + z-index: 2147483647 !important; + width: 80% !important; + box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 15px !important; +} + +:root .TridactylStatusIndicator { + position: fixed !important; + bottom: 0 !important; + font-weight: 200 !important; + padding: 0.8ex !important; +} + +/* #Shydactyl-normal { */ +/* border-color: green !important; */ +/* } */ + +/* #Shydactyl-insert { */ +/* border-color: yellow !important; */ +/* } */ diff --git a/programs/firefox/tridactyl/tridactylrc b/programs/firefox/tridactyl/tridactylrc index 84c06fe..d374856 100644 --- a/programs/firefox/tridactyl/tridactylrc +++ b/programs/firefox/tridactyl/tridactylrc @@ -1,6 +1,6 @@ sanitise tridactyllocal tridactylsync -colourscheme base16-codeschool +colourscheme swarsel " General Settings set update.lastchecktime 1720629386560 @@ -39,6 +39,7 @@ bind gwc tab_or_tabopen vbc.atlassian.net/wiki bind gwd tab_or_tabopen datadomain-impimba-2.imp.ac.at bind gwe tab_or_tabopen exivity.vbc.ac.at bind gwg tab_or_tabopen github.com +bind gwG tab_or_tabopen goc.egi.eu bind gwh tab_or_tabopen jupyterhub.vbc.ac.at bind gwH tab_or_tabopen test-jupyterhub.vbc.ac.at bind gwj tab_or_tabopen jenkins.vbc.ac.at @@ -48,7 +49,6 @@ bind gwm tab_or_tabopen monitoring.vbc.ac.at/grafana bind gwM tab_or_tabopen monitoring.vbc.ac.at/prometheus bind gwn tab_or_tabopen netbox.vbc.ac.at bind gwN tab_or_tabopen nap.imp.ac.at - bind gwo tab_or_tabopen outlook.office.com bind gws tab_or_tabopen satellite.vbc.ac.at bind gwt tab_or_tabopen tower.vbc.ac.at @@ -104,7 +104,7 @@ set allowautofocus false jsb browser.webRequest.onHeadersReceived.addListener(tri.request.clobberCSP,{urls:[""],types:["main_frame"]},["blocking","responseHeaders"]) " default is 300ms -" set hintdelay 500 +set hintdelay 100 " Some pages like github break on the tridactyl quick search. have this as a fallback unbind