1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
|
c.url.searchengines = {
"DEFAULT": "https://duckduckgo.com/?q={}",
"!aw": "https://wiki.archlinux.org/?search={}",
"!apkg": "https://archlinux.org/packages/?sort=&q={}&maintainer=&flagged=",
"!aur": "https://aur.archlinux.org/packages?O=0&SeB=nd&K={}&outdated=&SB=p&SO=d&PP=50&submit=Go",
"!gh": "https://github.com/search?o=desc&q={}&s=stars",
"!yt": "https://www.youtube.com/results?search_query={}",
}
c.url.default_page = "file:///home/moreka/.config/qutebrowser/startpage.html"
c.url.start_pages = ["file:///home/moreka/.config/qutebrowser/startpage.html"]
c.completion.open_categories = [
"searchengines",
"quickmarks",
"bookmarks",
"history",
"filesystem",
]
c.new_instance_open_target = "tab"
c.tabs.show = "multiple"
c.tabs.last_close = "close"
c.downloads.location.suggestion = "both"
c.spellcheck.languages = ["en-US"]
config.load_autoconfig() # load settings done via the gui
config.bind(
"zl",
"spawn --userscript qute-pass --username-pattern='login: (.*)' --username-target=secret",
)
config.bind(
"zul",
"spawn --userscript qute-pass --username-only --username-pattern='login: (.*)' --username-target=secret",
)
config.bind(
"zpl",
"spawn --userscript qute-pass --password-only --username-pattern='login: (.*)' --username-target=secret",
)
config.bind(
"zol",
"spawn --userscript qute-pass --otp-only --username-pattern='login: (.*)' --username-target=secret",
)
config.bind(
",m",
"spawn setsid runapp -o -- mpv {url}",
)
config.bind(
",M",
"hint links spawn setsid runapp -o -- mpv {hint-url}",
)
config.bind(
",d",
"config-cycle -t -p colors.webpage.bg '#282828' white ;; config-cycle -t -p colors.webpage.darkmode.enabled True False",
)
c.editor.command = ["alacritty", "-e", "nvim", "{file}", "-c", "normal {line}G{column}"]
# c.aliases.update(
# {
# "save-to-zotero": """jseval --quiet var d=document,s=d.createElement("script");s.src="https://www.zotero.org/bookmarklet/loader.js";(d.body?d.body:d.documentElement).appendChild(s);void(0);""",
# "zotero": "spawn --userscript qute-zotero",
# }
# )
c.colors.statusbar.private.bg = "#CF87E8"
c.colors.webpage.preferred_color_scheme = "dark"
c.colors.webpage.darkmode.algorithm = "lightness-cielab"
c.colors.webpage.darkmode.threshold.foreground = 150
c.colors.webpage.darkmode.threshold.background = 100
c.colors.webpage.darkmode.policy.images = "smart"
with config.pattern("*://www.overleaf.com/project/*") as p:
p.input.mode_override = "passthrough"
# To make Slack sign-in work:
with config.pattern("*://*.slack.com/*") as p:
p.content.unknown_url_scheme_policy = "allow-all"
with config.pattern("*://accounts.google.com/*") as p:
p.content.headers.user_agent = (
"Mozilla/5.0 (X11; Linux x86_64; rv:147.0) Gecko/20100101 Firefox/147.0"
)
c.content.blocking.enabled = True
c.content.blocking.method = "both"
# c.content.blocking.adblock.lists = [
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/legacy.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2020.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2021.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2022.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2023.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2024.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/filters-2025.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badware.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/privacy.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badlists.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances-cookies.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/annoyances-others.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/badlists.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/quick-fixes.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/resource-abuse.txt",
# "https://github.com/uBlockOrigin/uAssets/raw/master/filters/unbreak.txt",
# ]
|