mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 09:07:21 +01:00
chore: centralise folders
This commit is contained in:
parent
7d614f784c
commit
34badc91d5
152 changed files with 6292 additions and 6645 deletions
160
files/firefox/tridactyl/themes/swarsel.css
Normal file
160
files/firefox/tridactyl/themes/swarsel.css
Normal file
|
|
@ -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; */
|
||||
/* } */
|
||||
127
files/firefox/tridactyl/tridactylrc
Normal file
127
files/firefox/tridactyl/tridactylrc
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
sanitise tridactyllocal tridactylsync
|
||||
|
||||
colourscheme swarsel
|
||||
|
||||
" General Settings
|
||||
set update.lastchecktime 1720629386560
|
||||
set update.lastnaggedversion 1.24.1
|
||||
set update.nag true
|
||||
set update.nagwait 7
|
||||
set update.checkintervalsecs 86400
|
||||
set configversion 2.0
|
||||
set searchurls.no https://search.nixos.org/options?query=
|
||||
set searchurls.np https://search.nixos.org/packages?query=
|
||||
set searchurls.hm https://home-manager-options.extranix.com/?query=
|
||||
set searchurls.@c https://vbc.atlassian.net/wiki/search?text=
|
||||
set searchurls.@j https://vbc.atlassian.net/issues/?jql=textfields%20~%20%22%s*%22&wildcardFlag=true
|
||||
set completions.Tab.statusstylepretty true
|
||||
set hintfiltermode vimperator-reflow
|
||||
set hintnames numeric
|
||||
unbind --mode=hint <Space>
|
||||
|
||||
" Binds
|
||||
bind <C-m> buffer #
|
||||
bind gd tabdetach
|
||||
bind gD composite tabduplicate; tabdetach
|
||||
bind d composite tabprev; tabclose #
|
||||
bind D tabclose
|
||||
bind c hint
|
||||
bindurl ^http(s)?://www\.google\.com c hint -Jc [class="LC20lb MBeuO DKV0Md"],[class="YmvwI"],[class="YyVfkd"],[class="fl"]
|
||||
bindurl ^http(s)?://news\.ycombinator\.com c hint -Jc [class="titleline"],[class="age"]
|
||||
bindurl ^http(s)?://lobste\.rs c hint -Jc [class="u-url"],[class="comments_label"]
|
||||
bindurl ^http(s)?://www\.google\.com gi composite focusinput -l ; text.end_of_line
|
||||
|
||||
" Work
|
||||
command tab_or_tabopen jsb -p (async () => {let tabs = await browser.tabs.query({}); let tab = tabs.find(t => t.url.includes(JS_ARG)); if (tab) {browser.tabs.update(tab.id, { active: true });} else {tri.excmds.tabopen(JS_ARG);}})()
|
||||
|
||||
command tab_or_tabopen_local jsb -p (async () => {const currentWindow = await browser.windows.getCurrent(); const tabs = await browser.tabs.query({ windowId: currentWindow.id }); const tab = tabs.find(t => t.url.includes(JS_ARG)); if (tab) {browser.tabs.update(tab.id, { active: true });} else {tri.excmds.tabopen(JS_ARG);}})()
|
||||
|
||||
bind gwa tab_or_tabopen_local apic-impimba-1.m.imp.ac.at
|
||||
bind gwA tab_or_tabopen_local artifactory.imp.ac.at
|
||||
bind gwb tab_or_tabopen_local bitbucket.vbc.ac.at
|
||||
bind gwc tab_or_tabopen_local vbc.atlassian.net/wiki
|
||||
bind gwd tab_or_tabopen_local datadomain-impimba-2.imp.ac.at
|
||||
bind gwe tab_or_tabopen_local exivity.vbc.ac.at
|
||||
bind gwg tab_or_tabopen_local github.com
|
||||
bind gwG tab_or_tabopen_local goc.egi.eu
|
||||
bind gwh tab_or_tabopen_local jupyterhub.vbc.ac.at
|
||||
bind gwH tab_or_tabopen_local test-jupyterhub.vbc.ac.at
|
||||
bind gwj tab_or_tabopen_local jenkins.vbc.ac.at
|
||||
bind gwJ tab_or_tabopen_local test-jenkins.vbc.ac.at
|
||||
bind gwl tab_or_tabopen_local lucid.app
|
||||
bind gwm tab_or_tabopen_local monitoring.vbc.ac.at/grafana
|
||||
bind gwM tab_or_tabopen_local monitoring.vbc.ac.at/prometheus
|
||||
bind gwn tab_or_tabopen_local netbox.vbc.ac.at
|
||||
bind gwN tab_or_tabopen_local nap.imp.ac.at
|
||||
bind gwo tab_or_tabopen_local outlook.office.com
|
||||
bind gws tab_or_tabopen_local satellite.vbc.ac.at
|
||||
bind gwt tab_or_tabopen_local tower.vbc.ac.at
|
||||
bind gwv tab_or_tabopen_local vc-impimba-1.m.imp.ac.at/ui
|
||||
bind gwx tab_or_tabopen_local xclarity.vbc.ac.at
|
||||
|
||||
" Search in page
|
||||
set findcase smart
|
||||
bind / fillcmdline find
|
||||
bind ? fillcmdline find -?
|
||||
bind n findnext 1
|
||||
bind N findnext -1
|
||||
|
||||
bind j scrollline 4
|
||||
bind k scrollline -4
|
||||
|
||||
|
||||
" WARNING: This file defines and runs a command called fixamo_quiet. If you
|
||||
" also have a malicious addon that operates on `<all_urls>` installed this
|
||||
" will allow it to steal your firefox account credentials!
|
||||
"
|
||||
" With those credentials, an attacker can read anything in your sync account,
|
||||
" publish addons to the AMO, etc, etc.
|
||||
"
|
||||
" Without this command a malicious addon can steal credentials from any site
|
||||
" that you visit that is not in the restrictedDomains list.
|
||||
"
|
||||
" You should comment out the fixamo lines unless you are entirely sure that
|
||||
" they are what you want.
|
||||
command fixamo_quiet jsb tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""'))
|
||||
command fixamo js tri.excmds.setpref("privacy.resistFingerprinting.block_mozAddonManager", "true").then(tri.excmds.setpref("extensions.webextensions.restrictedDomains", '""').then(tri.excmds.fillcmdline_tmp(3000, "Permissions added to user.js. Please restart Firefox to make them take affect.")))
|
||||
|
||||
fixamo_quiet
|
||||
set allowautofocus false
|
||||
|
||||
" The following modification allows Tridactyl to function on more pages, e.g. raw GitHub pages.
|
||||
" You may not wish to run this. Mozilla strongly feels that you shouldn't.
|
||||
" Read https://wiki.mozilla.org/Security/CSP#Goals for more information.
|
||||
"
|
||||
" Equivalent to `set csp clobber` before it was removed.
|
||||
" This weakens your defences against cross-site-scripting attacks
|
||||
" and other types of code-injection by reducing the strictness
|
||||
" of Content Security Policy on all sites in a couple of ways.
|
||||
"
|
||||
" We remove the sandbox directive
|
||||
" https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/sandbox
|
||||
" which allows our iframe (and anyone else's) to run on any website.
|
||||
"
|
||||
" We weaken the style-src directive
|
||||
" https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/style-src
|
||||
" to allow us to theme our elements.
|
||||
" This exposes you to 'cross site styling' attacks
|
||||
jsb browser.webRequest.onHeadersReceived.addListener(tri.request.clobberCSP,{urls:["<all_urls>"],types:["main_frame"]},["blocking","responseHeaders"])
|
||||
|
||||
" default is 300ms
|
||||
set hintdelay 100
|
||||
|
||||
" Some pages like github break on the tridactyl quick search. have this as a fallback
|
||||
unbind <C-f>
|
||||
|
||||
" Subconfig Settings
|
||||
seturl www.google.com followpagepatterns.next Next
|
||||
seturl www.google.com followpagepatterns.prev Previous
|
||||
|
||||
" Autocmds
|
||||
autocmd DocStart undefined mode ignore
|
||||
autocmd DocStart pokerogue.net mode ignore
|
||||
autocmd DocStart typelit.io mode ignore
|
||||
autocmd DocStart vc-impimba-1.m.imp.ac.at/ui/webconsole mode ignore
|
||||
|
||||
" For syntax highlighting see https://github.com/tridactyl/vim-tridactyl
|
||||
" vim: set filetype=tridactyl
|
||||
Loading…
Add table
Add a link
Reference in a new issue