dotfiles/.config/qutebrowser/config.py

51 lines
2.2 KiB
Python
Raw Normal View History

2021-01-28 21:23:04 +00:00
config.load_autoconfig(False)
config.source('adapta.py')
config.source('bindings.py')
config.source('redirects.py')
2020-09-06 03:14:57 +00:00
2021-01-28 21:23:04 +00:00
c.url.default_page = "feedly.com/i/my"
c.url.start_pages = ["duck.com/?q=20m timer"]
c.url.searchengines['y'] = "localhost/search?q={}"
2020-08-22 20:58:07 +00:00
2020-08-25 15:47:14 +00:00
c.content.fullscreen.window = True
2020-08-22 21:36:46 +00:00
c.downloads.location.prompt = False
2021-01-28 21:23:04 +00:00
c.input.insert_mode.auto_leave = False
c.scrolling.smooth = True
2021-01-28 21:23:04 +00:00
c.url.open_base_url = True
2021-01-28 21:23:04 +00:00
c.completion.open_categories = ["quickmarks", "bookmarks", "history"]
c.confirm_quit = ["downloads"]
c.content.cookies.accept = "no-3rdparty"
c.fonts.default_size = "9pt"
c.qt.args += ["enable-gpu-rasterization"]
c.qt.force_platformtheme = "gtk2"
c.tabs.show = "multiple"
2021-01-28 21:23:04 +00:00
ccw = c.colors.webpage
ccwd = ccw.darkmode
ccwd.enabled = True
ccwd.policy.images = 'never'
ccw.prefers_color_scheme_dark = True
2020-10-24 03:45:26 +00:00
mpv = 'spawn -m -d -v mpv --ytdl-raw-options=write-sub=,write-auto-sub=,embed-subs=,sub-lang=en'
c.aliases['mpv'] = mpv
c.aliases['mpv4'] = mpv + ' --ytdl-format=bestvideo[vcodec^=avc1]+bestaudio'
c.aliases['remove-sticky'] = 'jseval -q !function(){var e,o=document.querySelectorAll("body *");for(e=0;e<o.length;e++)["sticky","fixed"].includes(getComputedStyle(o[e]).position)&&o[e].parentNode.removeChild(o[e])}();'
2020-10-24 03:45:26 +00:00
2021-01-28 21:23:04 +00:00
c.content.blocking.method = "both"
hosts = c.content.blocking.hosts.lists
hosts.append("https://github.com/Perflyst/PiHoleBlocklist/raw/master/AmazonFireTV.txt")
hosts.append("https://github.com/jmdugan/blocklists/raw/master/corporations/twitter/all")
hosts.append("https://github.com/jmdugan/blocklists/raw/master/corporations/microsoft/all")
hosts.append("https://github.com/jmdugan/blocklists/raw/master/corporations/facebook/all-but-whatsapp")
2020-08-22 19:38:32 +00:00
2021-01-28 21:23:04 +00:00
config.set('content.persistent_storage', True, 'https://mega.nz')
config.set('content.desktop_capture', True, 'https://discord.com')
config.set('content.media.audio_capture', True, 'https://discord.com')
config.set('content.notifications', True, 'https://mail.tutanota.com')
config.set('content.register_protocol_handler', True, 'https://mail.tutanota.com')
config.set('content.register_protocol_handler', False, 'https://mail.google.com?extsrc=mailto&url=%25s')
#import dracula.draw
2021-01-28 21:23:04 +00:00
#dracula.draw.blood(c, {'spacing': {'vertical': 1,'horizontal': 0}})