update qutebrowser

This commit is contained in:
Henrik Bakken
2023-12-27 23:35:04 +01:00
parent 190daacf38
commit 3750ada97c
2 changed files with 107 additions and 95 deletions
+1 -95
View File
@@ -6,101 +6,7 @@
config_version: 2
settings:
auto_save.session:
global: true
bindings.commands:
global:
normal:
<: tab-move -
<Ctrl+Shift+Tab>: tab-prev
<Ctrl+Tab>: tab-next
<Ctrl+l>: set-cmd-text :open {url:pretty}
<F10>: config-cycle colors.webpage.darkmode.enabled true false ;; restart
<F11>: config-cycle tabs.show always switching
<F12>: view-source
'>': tab-move +
J: tab-prev
K: tab-next
pw: spawn --userscript qute-bitwarden
tm: tab-move
to: tab-focus
ø: 'set-cmd-text :'
colors.tabs.even.bg:
global: cyan
colors.tabs.even.fg:
global: black
colors.tabs.odd.bg:
global: cyan
colors.tabs.odd.fg:
global: black
colors.webpage.darkmode.enabled:
global: true
content.register_protocol_handler:
https://mail.google.com?extsrc=mailto&url=%25s: true
content.tls.certificate_errors:
global: ask-block-thirdparty
fonts.statusbar:
global: 20px default_family
fonts.tabs.selected:
global: 10pt sans-serif
fonts.tabs.unselected:
global: 10pt sans-serif
messages.timeout:
global: 500
scrolling.bar:
global: always
session.lazy_restore:
global: true
statusbar.padding:
global:
bottom: 10
left: 10
right: 10
top: 10
statusbar.position:
global: top
statusbar.widgets:
global:
- keypress
- search_match
- url
- scroll
- history
- progress
tabs.focus_stack_size:
global: 10
tabs.indicator.width:
global: 3
tabs.last_close:
global: close
tabs.max_width:
global: 8000
tabs.min_width:
global: -1
tabs.mode_on_change:
global: persist
tabs.padding:
global:
bottom: 2
left: 5
right: 5
top: 2
global: false
tabs.position:
global: top
tabs.show:
global: always
tabs.show_switching_delay:
global: 5000
tabs.undo_stack_size:
global: 1000
tabs.width:
global: 15%
url.searchengines:
global:
DEFAULT: https://google.com/search?q={}
ddg: https://duckduckgo.com/?q={}
goo: https://google.com/search?q={}
ip: https://iplocation.io/ip/{}
sh: https://explainshell.com/explain?cmd={}
url.start_pages:
global: https://rss.hjarl.com
+106
View File
@@ -0,0 +1,106 @@
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Any
config: Any = None
c: Any = None
config.load_autoconfig(True)
config.set("content.register_protocol_handler", True, "https://mail.google.com?extsrc=mailto&url=%25s")
config.bind("<", "tab-move -")
config.bind("<Ctrl+Shift+Tab>", "tab-prev")
config.bind("<Ctrl+Tab>", "tab-next")
config.bind("<Ctrl+l>", "set-cmd-text :open {url:pretty}")
config.bind("<Ctrl-r>", "restart", mode="normal")
config.bind("<F10>", "config-cycle colors.webpage.darkmode.enabled true false ;; restart")
config.bind("<F11>", "config-cycle tabs.position top left")
config.bind("<F12>", "view-source")
config.bind(">", "tab-move +")
config.bind("J", "tab-prev")
config.bind("K", "tab-next")
config.bind("pw", "spawn --userscript qute-bitwarden")
config.bind("tm", "tab-move")
config.bind("to", "tab-focus")
config.bind("ø", "set-cmd-text :")
config.unbind("q", mode="normal")
c.auto_save.session = True
c.completion.open_categories = [
"searchengines",
"quickmarks",
"bookmarks",
"history",
"filesystem",
]
c.completion.web_history.max_items = 10000
c.content.autoplay = False
c.content.geolocation = False
c.content.cache.size = 52428800
c.content.notifications.enabled = False
c.content.tls.certificate_errors = "ask-block-thirdparty"
c.editor.command = [
"urxvt",
"-title",
"scratchpad",
"-geometry",
"86x24+40+60",
"-e",
"nvim",
"-f",
"{}",
]
c.input.insert_mode.auto_load = True
c.input.insert_mode.plugins = True
c.messages.timeout = 500
c.qt.args = [
"enable-accelerated-video-decode",
"enable-gpu-rasterization",
]
c.scrolling.bar = "always"
c.session.lazy_restore = False
c.statusbar.padding = {"bottom": 10, "left": 10, "right": 10, "top": 10}
c.statusbar.position = "top"
c.statusbar.widgets = [
"keypress",
"search_match",
"url",
"scroll",
"history",
"progress",
]
c.tabs.background = True
c.tabs.favicons.show = "never"
c.tabs.indicator.width = 3
c.tabs.last_close = "close"
c.tabs.max_width = 8000
c.tabs.min_width = -1
c.tabs.mode_on_change = "persist"
c.tabs.new_position.related = "next"
c.tabs.padding = {"bottom": 2, "left": 5, "right": 5, "top": 2}
c.tabs.position = "top"
c.tabs.show = "always"
c.tabs.show_switching_delay = 5000
c.tabs.title.format = "{index}.{current_title}"
c.tabs.undo_stack_size = 1000
c.tabs.width = "15%"
c.url.start_pages = "https://rss.hjarl.com"
c.url.searchengines = dict(
DEFAULT="https://google.com/search?q={}",
a="https://wiki.archlinux.org/?search={}",
d="https://duckduckgo.com/?q={}",
g="https://github.com/search?q={}&type=Code",
i="https://iplocation.io/ip/{}",
s="https://explainshell.com/explain?cmd={}",
w="https://en.wikipedia.org/w/index.php?search={}",
y="https://yewtu.be/search?q={}",
)
c.colors.tabs.even.bg = "cyan"
c.colors.tabs.even.fg = "black"
c.colors.tabs.odd.bg = "cyan"
c.colors.tabs.odd.fg = "black"
c.fonts.tabs.selected = "10pt sans-serif"
c.fonts.tabs.unselected = "10pt sans-serif"
c.fonts.statusbar = "20px default_family"