From 5b3eafeb1296766304a45da7b87b4a2c52d539a4 Mon Sep 17 00:00:00 2001 From: Phantop Date: Mon, 20 Jul 2020 23:34:58 -0400 Subject: [PATCH] Qute: start adding some settings to config.py --- .config/qutebrowser/config.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 63dd9e3..6445e73 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -23,9 +23,41 @@ config.bind('sw', 'open https://conifer.rhizome.org/record/{url}') config.bind('sx', 'spawn -u nitterize') config.bind('xd', 'spawn -u unitter') config.bind('sw', 'spawn -u focusmode') + +# dotepub (page to epub converter) config.bind('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=ask&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)();") config.bind('sca', 'spawn -u switchadapta') config.bind('sd', 'spawn -u downloads') config.bind('st', 'spawn -u switchtor') + +# BEGIN MAIN CONFIGURATION # +c.url.default_page = "https://mangadex.org/follows" +c.url.start_pages = ["https://mangadex.org/follows"] +c.url.searchengines = {"DEFAULT": "https://duckduckgo.com/?q={}", "y": "https://invidio.us/search?q={}"} + +c.content.user_stylesheets = ["/home/glados/.local/share/qutebrowser/normalize.css"] + +c.content.host_blocking.lists.append("https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts") +c.content.host_blocking.lists.append("https://github.com/adversarialtools/apple-telemetry/raw/master/blacklist") +c.content.host_blocking.lists.append("https://raw.githubusercontent.com/jmdugan/blocklists/master/corporations/facebook/all") +c.content.host_blocking.lists.append("https://raw.githubusercontent.com/jmdugan/blocklists/master/corporations/microsoft/all") +c.content.host_blocking.lists.append("https://github.com/Perflyst/PiHoleBlocklist/raw/master/AmazonFireTV.txt") + +guicol = '#222D32' +accent = '#5294E2' + +c.colors.completion.category.bg = guicol +c.colors.completion.scrollbar.bg = guicol +c.colors.downloads.bar.bg = guicol +c.colors.prompts.bg = guicol +c.colors.statusbar.command.bg = guicol +c.colors.statusbar.command.private.bg = guicol +c.colors.statusbar.normal.bg = guicol +c.colors.statusbar.private.bg = guicol +c.colors.tabs.bar.bg = guicol +c.colors.tabs.even.bg = guicol +c.colors.tabs.odd.bg = guicol +c.colors.tabs.pinned.even.bg = guicol +c.colors.tabs.pinned.odd.bg = guicol