1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-18 04:42:49 +00:00
dotfiles/.config/qutebrowser/autoconfig.yml

358 lines
15 KiB
YAML
Executable file

# If a config.py file exists, this file is ignored unless it's explicitly loaded
# via config.load_autoconfig(). For more information, see:
# https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc#loading-autoconfigyml
# DO NOT edit this file by hand, qutebrowser will overwrite it.
# Instead, create a config.py - see :help for details.
config_version: 2
settings:
aliases:
global:
q: quit
w: session-save
wq: quit --save
backend:
global: webengine
bindings.commands:
global:
normal:
<Alt+t>: tab-prev
<Ctrl+Shift+m>: spawn fish -c 'cd Downloads; ydl "{url}"'
<Ctrl+k>: spawn -u qute-keepass -p ~/.keepass
<Ctrl+m>: spawn -m -d -v mpv {url}
<Ctrl+q>: close
<Ctrl+r>: spawn --userscript readability
<Ctrl+w>: tab-close
gy: spawn -u ydl
sa: spawn -u archive
sb: open javascript:(function($)%7Bfunction%20htmlEscape(str)%20%7Breturn%20String(str).replace(/&/g,%20'&amp;').replace(/%22/g,%20'&quot;').replace(/'/g,%20'&#39;').replace(/%3C/g,%20'&lt;').replace(/%3E/g,%20'&gt;');%7Dvar%20resultsDiv%20=%20document.createElement('div');resultsDiv.className%20=%20'ebookdownloads';resultsDiv.innerHTML%20+=%20'%3Cstyle%20scoped=%22scoped%22%3E%20.ebookdownloads%20p%20%7B%20margin:%200%20auto;%20padding:%200.25em;%20clear:%20both;%20%7D%20.ebookdownloads%20p:hover%20%7B%20background:%20rgba(0,0,0,0.15)%20!important;%20%7D%20.ebookdownloads%20%20p:nth-child(even)%20%7B%20background:%20rgba(0,0,0,0.05);%20%7D%20.ebookdownloads%20small.downloadtags%20%7B%20%20margin-top:%200.35em;%20%7D;%20.ebookdownloads%20.downloadtitle%20%7B%20cursor:default;%20%7D%20.ebookdownloads%20.downloadlinks%20%7B%20float:%20right;%7D%3C/style%3E';$('li.work,%20li.bookmark').each(function()%20%7Bvar%20options%20=%20%7B%22include_tags%22:false%7D;var%20download_url%20=%20'http://archiveofourown.org/downloads/';var%20author%20=%20$(this).find('[rel=author]:first').text();var%20author_parts%20=%20/([a-zA-Z0-9_%5Cs%5C-]*)%5Cs?(%5C((%5Cw*?)%5C))?/.exec(author);var%20pseud%20=%20author_parts[1];if%20(%20!pseud%20)%20%7Bpseud%20=%20'Anonymous';%7D/*download_url%20+=%20pseud.substring(0,%202)%20+%20'/'%20+%20pseud%20+%20'/';*/var%20summary%20=%20$(this).find('blockquote.summary').text();summary%20=%20$.trim(htmlEscape(summary));summary%20=%20summary.replace(/%5C.(%5CS)/g,%20'.%20%5C$1');%20%20var%20$match%20=%20$('.heading%20%3E%20a:first',%20this).attr('href').match(/works%5C/(%5Cd*)%5C/?/);%20%20if%20(!$match)%20%7B%20return;%20%7Dvar%20id%20=%20$match[1];download_url%20+=%20id%20+%20'/';var%20title%20=%20$(this).find('.heading%20%3E%20a:first').text();var%20filename%20=%20title.replace(/[%5E%5Cw%20_-]+/g,%20'').replace(/%20+/g,%20'%20');filename%20=%20filename.replace(/%5E(.%7B24%7D[%5Cw.]*).*/,%20'$1');download_url%20+=%20filename;var%20results%20=%20'%3Cp%3E%3Cspan%20class=%22downloadtitle%22%20title=%22'%20+%20summary%20+%20'%22%3E'%20+%20title%20+%20'%3C/span%3E:%20%3Cspan%20class=%22downloadlinks%22%3E%3Ca%20href=%22'%20+%20download_url%20+%20'.mobi%22%3Emobi%3C/a%3E%20%3Ca%20href=%22'%20+%20download_url%20+%20'.epub%22%3Eepub%3C/a%3E%20%3Ca%20href=%22'%20+%20download_url%20+%20'.pdf%22%3Epdf%3C/a%3E%20%3Ca%20href=%22'%20+%20download_url%20+%20'.html%22%3Ehtml%3C/a%3E%3C/span%3E';if%20(%20options.include_tags%20)%20%7Bvar%20tags%20=%20'';$(this).find('.fandoms%20.tag,%20.fandom,%20.relationships').each(function()%20%7Btags%20+=%20$.trim($(this).text())%20+%20',%20';%7D);results%20+=%20'%3Cbr/%3E%3Csmall%20class=%22downloadtags%22%3E'%20+%20tags.replace(/,%5Cs$/,%20'')%20+%20'%3C/small%3E';%7Dresults%20+=%20'%3C/p%3E';resultsDiv.innerHTML%20+=%20results;%7D);$('%23workskin').append('%3Cdiv%20id=%22mass_ebook_download_modal%22%3E');window.ao3modal.show('%23mass_ebook_download_modal');window.ao3modal.setContent(resultsDiv,%20'EBook%20Downloads');%7D)(jQuery);
sca: spawn -u switchadapta
scd: spawn -u switchdark
sd: spawn -u open_download
se: open javascript:(function()%7Btry%7Bvar%20d=document,w=window;if(!d.body%7C%7Cd.body.innerHTML=='')throw(0);var%20s=d.createElement('link'),h=d.getElementsByTagName('head')[0],i=d.createElement('div'),j=d.createElement('script');s.rel='stylesheet';s.href='//dotepub.com/s/dotEPUB-favlet.css';s.type='text/css';s.media='screen';h.appendChild(s);i.setAttribute('id','dotepub');i.innerHTML='%3Cdiv%20id=%22status%22%3E%3Cp%3EConversion%20in%20progress...%3C/p%3E%3C/div%3E';d.body.appendChild(i);j.type='text/javascript';j.charset='utf-8';j.src='//dotepub.com/j/dotepub.js?v=1.2&s=0&t=epub&g=en';h.appendChild(j);%7Dcatch(e)%7Bw.alert('The%20page%20has%20no%20content%20or%20it%20is%20not%20fully%20loaded.%20Please,%20wait%20till%20the%20page%20is%20loaded.');%7D%7D)();
sj: open javascript:(function()%7B%20let%20i%2C%20elements%20%3D%20document.querySelectorAll('body%20*')%3B%20for%20(i%20%3D%200%3B%20i%20%3C%20elements.length%3B%20i%2B%2B)%20%7B%20if(getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'fixed'%20%7C%7C%20getComputedStyle(elements%5Bi%5D).position%20%3D%3D%3D%20'sticky')%7B%20elements%5Bi%5D.parentNode.removeChild(elements%5Bi%5D)%3B%20%7D%20%7D%20%7D)()
sq: open qr {url}
sr: open javascript:(function()%7Bfunction%20R(w)%7Btry%7Bvar%20d=w.document,j,i,t,T,N,b,r=1,C;for(j=0;t=[%22object%22,%22embed%22,%22applet%22,%22iframe%22][j];++j)%7BT=d.getElementsByTagName(t);for(i=T.length-1;(i+1)&&(N=T[i]);--i)if(j!=3%7C%7C!R((C=N.contentWindow)?C:N.contentDocument.defaultView))%7Bb=d.createElement(%22div%22);b.style.width=N.width;%20b.style.height=N.height;b.innerHTML=%22%3Cdel%3E%22+(j==3?%22third-party%20%22+t:t)+%22%3C/del%3E%22;N.parentNode.replaceChild(b,N);%7D%7D%7Dcatch(E)%7Br=0%7Dreturn%20r%7DR(self);var%20i,x;for(i=0;x=frames[i];++i)R(x)%7D)();%20javascript:(function()%7Bvar%20newSS,%20styles='*%20%7B%20background:%20white%20!%20important;%20color:%20black%20!important%20%7D%20:link,%20:link%20*%20%7B%20color:%20#0000EE%20!important%20%7D%20:visited,%20:visited%20*%20%7B%20color:%20%23551A8B%20!important%20%7D';%20if(document.createStyleSheet)%20%7B%20document.createStyleSheet(%22javascript:'%22+styles+%22'%22);%20%7D%20else%20%7B%20newSS=document.createElement('link');%20newSS.rel='stylesheet';%20newSS.href='data:text/css,'+escape(styles);%20document.getElementsByTagName(%22head%22)[0].appendChild(newSS);%20%7D%20%7D)();%20javascript:(function()%7Bvar%20d=document;%20function%20K(N,w)%20%7B%20var%20nn%20=%20d.createElement(w),%20C%20=%20N.childNodes,%20i;%20for(i=C.length-1;i%3E=0;--i)%20nn.insertBefore(C[i],nn.childNodes[0]);%20N.parentNode.replaceChild(nn,N);%20%7D%20function%20Z(t,w)%20%7B%20var%20T%20=%20document.getElementsByTagName(t),%20j;%20for%20(j=T.length-1;j%3E=0;--j)%20K(T[j],w);%20%7D%20Z(%22blink%22,%20%22span%22);%20Z(%22marquee%22,%20%22div%22);%20%7D)();%20javascript:(function()%7Bvar%20H=[%22mouseover%22,%22mouseout%22,%22unload%22,%22resize%22],o=window.opera;%20if(document.addEventListener/*MOZ*/&&!o)%20for(j%20in%20H)document.addEventListener(H[j],function(e)%7Be.stopPropagation();%7D,true);%20else%20if(window.captureEvents/*NS4*/&&!o)%20%7B%20document.captureEvents(-1/*ALL*/);for(j%20in%20H)window[%22on%22+H[j]]=null;%7D%20else/*IE*/%20%7Bfunction%20R(N)%7Bvar%20i,x;for(j%20in%20H)if(N[%22on%22+H[j]]/*NOT%20TEXTNODE*/)N[%22on%22+H[j]]=null;for(i=0;x=N.childNodes[i];++i)R(x);%7DR(document);%7D%7D)();%20javascript:(function()%20%7B%20var%20c,%20tID,%20iID;%20tID%20=%20setTimeout(function()%7B%7D,%200);%20for%20(c=1;%20c%3C1000%20&&%20c%3C=tID;%20++c)%20clearTimeout(tID%20-%20c);%20iID%20=%20setInterval(function()%7B%7D,1000);%20for%20(c=0;%20c%3C1000%20&&%20c%3C=iID;%20++c)%20clearInterval(iID%20-%20c);%20%7D)();
st: spawn -u switchtor
sw: open https://webrecorder.io/record/{url}
sx: spawn -u nitterize
sz: spawn -u focusmode
xs: spawn -u unitter
passthrough:
<Ctrl+Shift+Escape>exit: leave-mode
<Shift+Escape>: null
colors.completion.category.bg:
global: '#222D32'
colors.completion.category.border.bottom:
global: black
colors.completion.category.border.top:
global: black
colors.completion.category.fg:
global: white
colors.completion.even.bg:
global: '#29353B'
colors.completion.item.selected.bg:
global: '#5294E2'
colors.completion.item.selected.border.bottom:
global: '#5294E2'
colors.completion.item.selected.border.top:
global: '#5294E2'
colors.completion.match.fg:
global: '#5294E2'
colors.completion.odd.bg:
global: '#243035'
colors.completion.scrollbar.bg:
global: '#222D32'
colors.completion.scrollbar.fg:
global: '#5294E2'
colors.downloads.bar.bg:
global: '#222D32'
colors.downloads.error.bg:
global: red
colors.hints.bg:
global: rgba(0, 226, 255, 0.8)
colors.hints.fg:
global: black
colors.hints.match.fg:
global: green
colors.keyhint.suffix.fg:
global: '#FFFF00'
colors.messages.error.bg:
global: red
colors.messages.warning.border:
global: '#d47300'
colors.prompts.bg:
global: '#222D32'
colors.prompts.selected.bg:
global: grey
colors.statusbar.command.bg:
global: '#222D32'
colors.statusbar.command.private.bg:
global: '#222D32'
colors.statusbar.command.private.fg:
global: white
colors.statusbar.insert.bg:
global: darkgreen
colors.statusbar.insert.fg:
global: white
colors.statusbar.normal.bg:
global: '#222D32'
colors.statusbar.private.bg:
global: '#222D32'
colors.statusbar.private.fg:
global: white
colors.statusbar.url.error.fg:
global: orange
colors.statusbar.url.fg:
global: white
colors.statusbar.url.warn.fg:
global: yellow
colors.tabs.bar.bg:
global: '#222D32'
colors.tabs.even.bg:
global: '#222D32'
colors.tabs.indicator.start:
global: '#0000aa'
colors.tabs.indicator.stop:
global: '#00aa00'
colors.tabs.odd.bg:
global: '#222D32'
colors.tabs.pinned.even.bg:
global: '#222D32'
colors.tabs.pinned.odd.bg:
global: '#222D32'
colors.tabs.pinned.odd.fg:
global: white
colors.tabs.pinned.selected.even.bg:
global: '#5294E2'
colors.tabs.pinned.selected.even.fg:
global: black
colors.tabs.pinned.selected.odd.bg:
global: '#5294E2'
colors.tabs.pinned.selected.odd.fg:
global: black
colors.tabs.selected.even.bg:
global: '#5294E2'
colors.tabs.selected.even.fg:
global: black
colors.tabs.selected.odd.bg:
global: '#5294E2'
colors.tabs.selected.odd.fg:
global: black
colors.webpage.bg:
global: white
colors.webpage.prefers_color_scheme_dark:
global: true
completion.open_categories:
global:
- quickmarks
- bookmarks
- history
completion.quick:
global: true
content.cookies.accept:
global: no-3rdparty
content.desktop_capture:
https://discord.com: true
https://discordapp.com: true
content.dns_prefetch:
global: true
content.fullscreen.window:
global: true
content.headers.do_not_track:
global: true
content.headers.referer:
global: same-domain
content.host_blocking.enabled:
global: true
content.host_blocking.lists:
global:
- https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
- https://github.com/adversarialtools/apple-telemetry/raw/master/blacklist
- https://raw.githubusercontent.com/jmdugan/blocklists/master/corporations/facebook/all
- https://raw.githubusercontent.com/jmdugan/blocklists/master/corporations/microsoft/all
- https://github.com/Perflyst/PiHoleBlocklist/raw/master/AmazonFireTV.txt
content.host_blocking.whitelist:
global:
- web.whatsapp.com
content.hyperlink_auditing:
global: false
content.images:
global: true
content.javascript.alert:
global: true
content.javascript.can_access_clipboard:
global: false
content.javascript.can_open_tabs_automatically:
global: true
content.javascript.modal_dialog:
global: true
content.media_capture:
https://discord.com: true
https://discordapp.com: true
content.notifications:
https://play.pokemonshowdown.com: true
https://web.whatsapp.com: true
content.pdfjs:
global: true
content.persistent_storage:
global: ask
content.plugins:
global: false
content.print_element_backgrounds:
global: true
content.private_browsing:
global: false
content.proxy:
global: system
content.register_protocol_handler:
global: ask
https://mail.tutanota.com#url=%25s: true
content.ssl_strict:
global: ask
content.user_stylesheets:
global:
- /home/glados/.local/share/qutebrowser/normalize.css
content.webgl:
global: true
content.webrtc_ip_handling_policy:
global: default-public-interface-only
content.xss_auditing:
global: false
editor.command:
global:
- nvim
- -f
- '{file}'
- -c
- normal {line}G{column0}l
editor.encoding:
global: utf-8
fonts.completion.category:
global: bold 9pt default_family
fonts.completion.entry:
global: 9pt default_family
fonts.debug_console:
global: 9pt default_family
fonts.downloads:
global: 9pt default_family
fonts.hints:
global: bold 9pt default_family
fonts.keyhint:
global: 9pt default_family
fonts.messages.error:
global: 9pt default_family
fonts.messages.info:
global: 9pt default_family
fonts.messages.warning:
global: 9pt default_family
fonts.prompts:
global: 9pt sans-serif
fonts.statusbar:
global: 9pt default_family
fonts.tabs:
global: 9pt default_family
fonts.web.family.fantasy:
global: null
fonts.web.family.standard:
global: null
fonts.web.size.default_fixed:
global: 13
hints.auto_follow_timeout:
global: 0
hints.border:
global: '1px solid #00A5BA'
hints.next_regexes:
global:
- \bnext\b
- \bmore\b
- \bnewer\b
- \b[>→≫]\b
- \b(>>|»)\b
- \bcontinue\b
hints.uppercase:
global: false
input.insert_mode.auto_leave:
global: false
input.insert_mode.auto_load:
global: true
input.partial_timeout:
global: 5000
input.rocker_gestures:
global: false
input.spatial_navigation:
global: false
prompt.filebrowser:
global: true
prompt.radius:
global: 3
qt.force_software_rendering:
global: software-opengl
qt.highdpi:
global: false
scrolling.bar:
global: when-searching
scrolling.smooth:
global: true
statusbar.hide:
global: false
statusbar.padding:
global:
bottom: 1
left: 0
right: 0
top: 1
tabs.background:
global: true
tabs.select_on_remove:
global: next
tabs.show:
global: multiple
url.auto_search:
global: naive
url.default_page:
global: https://mangadex.org/follows
url.incdec_segments:
global:
- path
- query
url.open_base_url:
global: false
url.searchengines:
global:
DEFAULT: https://duckduckgo.com/?q={}
r: https://old.reddit.com/r/{}
y: https://invidio.us/search?q={}
url.start_pages:
global:
- https://mangadex.org/follows
- https://classroom.google.com/u/1/h
- https://piazza.com/class/k03sfh8l68a4hw
- https://duckduckgo.com/?q=20%20min%20timer
url.yank_ignored_parameters:
global:
- ref
- utm_source
- utm_medium
- utm_campaign
- utm_term
- utm_content
zoom.levels:
global:
- 25%
- 33%
- 50%
- 67%
- 75%
- 90%
- 100%
- 110%
- 125%
- 150%
- 175%
- 200%
- 250%
- 300%
- 400%
- 500%