1
0
Fork 0
mirror of https://github.com/Phantop/dotfiles synced 2024-11-09 00:14:53 +00:00
dotfiles/qutebrowser/config.py

38 lines
1.6 KiB
Python
Raw Normal View History

2021-01-28 21:23:04 +00:00
config.load_autoconfig(False)
config.source('adblock.py')
2022-03-02 03:57:07 +00:00
config.source('color.py')
config.source('bindings.py')
config.source('javascript.py')
config.source('redirects.py')
2020-09-06 03:14:57 +00:00
2022-03-02 03:57:07 +00:00
import subprocess
2022-03-04 17:37:45 +00:00
subprocess.run(["sass", config.configdir / 'user.scss', config.configdir / 'user.css'])
2022-03-02 03:57:07 +00:00
c.url.start_pages = c.url.default_page = 'fast-headland-67505.herokuapp.com'
config.set('content.javascript.enabled', True, c.url.start_pages)
c.url.searchengines['y'] = 'farside.link/invidious/search?q={}'
c.tabs.show = 'multiple'
c.confirm_quit = ['downloads']
c.qt.force_platformtheme = 'gtk2'
c.content.fullscreen.window = True
c.content.user_stylesheets = 'user.css'
c.content.cookies.accept = 'no-3rdparty'
c.colors.webpage.darkmode.enabled = True
2022-01-12 23:02:54 +00:00
c.colors.webpage.preferred_color_scheme = 'dark'
2022-01-13 15:36:39 +00:00
c.colors.webpage.darkmode.policy.images = 'never'
2020-10-24 03:45:26 +00:00
c.aliases['re'] = 'restart'
2022-01-12 23:02:54 +00:00
c.aliases['mpv'] = 'spawn -mdv mpv --ytdl-raw-options=sub-lang=en'
2022-03-02 04:32:07 +00:00
c.aliases['css-reload'] = 'set content.user_stylesheets user.css'
2022-03-04 17:37:45 +00:00
c.aliases['scss-reload'] = 'spawn -u /bin/sh -c "sass $QUTE_CONFIG_DIR/user.{s,}css"'
2022-01-12 23:02:54 +00:00
c.aliases['remove-sticky'] = 'jseval -q document.querySelectorAll("*").forEach(e=>{["sticky","fixed"].includes(getComputedStyle(e).position)&&e.parentNode.removeChild(e)})'
c.aliases['toggle-dark'] = 'reload;;jseval -q const meta=document.createElement("meta");meta.name="color-scheme";document.head.appendChild(meta).content="dark";;stop'
2020-10-24 03:45:26 +00:00
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')
import socket
if socket.gethostname() == 'wheatley':
c.zoom.default = 125