dotfiles/dot-config/qutebrowser/config.py

66 lines
2.7 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"
2021-03-26 00:53:22 +00:00
c.url.start_pages = ["localhost", "duck.com/?q=20m timer"]
2021-01-28 21:23:04 +00:00
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"
2021-05-18 16:50:56 +00:00
c.content.pdfjs = True
2021-01-28 21:23:04 +00:00
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
2021-05-29 20:17:20 +00:00
#ccwd.enabled = True
2021-01-28 21:23:04 +00:00
ccwd.policy.images = 'never'
ccw.preferred_color_scheme = 'dark'
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])}();'
c.aliases['re'] = 'restart'
2020-10-24 03:45:26 +00:00
host = c.content.blocking.hosts.lists.append
host("https://github.com/Perflyst/PiHoleBlocklist/raw/master/AmazonFireTV.txt")
host("https://github.com/jmdugan/blocklists/raw/master/corporations/twitter/all")
host("https://github.com/jmdugan/blocklists/raw/master/corporations/microsoft/all")
2021-10-08 19:24:27 +00:00
host("https://github.com/jmdugan/blocklists/raw/master/corporations/facebook/all")
2020-08-22 19:38:32 +00:00
abp = c.content.blocking.adblock.lists.append
abp("https://fanboy.co.nz/r/fanboy-ultimate.txt")
abp("https://fanboy.co.nz/fanboy-antifacebook.txt")
abp("https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt")
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')
2021-04-13 14:05:25 +00:00
config.set('content.notifications.enabled', True, 'https://mail.tutanota.com')
2021-01-28 21:23:04 +00:00
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}})
import socket
if socket.gethostname() == "wheatley":
c.qt.highdpi = True
c.zoom.default = 125
c.url.start_pages = "covid19.rpi.edu/dailycheckin"
c.url.searchengines['y'] = "vid.puffyan.us/search?q={}"
c.fonts.default_size = "11pt"
c.aliases['mpv'] = mpv + ' --ytdl-format=bestvideo[vcodec^=avc1]+bestaudio'