move qutebrowser to config.py

This commit is contained in:
Alexander Bocken 2023-03-29 23:55:21 +02:00
parent 8671fd212a
commit 2fe75c0f1b
Signed by: Alexander
GPG Key ID: 1D237BE83F9B05E8
3 changed files with 84 additions and 182 deletions

View File

@ -1,168 +0,0 @@
# If a config.py file exists, this file is ignored unless it's explicitly loaded
# via config.load_autoconfig(). For more information, see:
# https://github.com/qutebrowser/qutebrowser/blob/master/doc/help/configuring.asciidoc#loading-autoconfigyml
# DO NOT edit this file by hand, qutebrowser will overwrite it.
# Instead, create a config.py - see :help for details.
config_version: 2
settings:
auto_save.session:
global: true
backend:
global: webengine
bindings.commands:
global:
normal:
',A': spawn -d catt add {url}
',C': spawn -d st castyt {url}
',S': spawn -d mpvallvids {url}
',V': spawn -d startmpv {url}
',X': spawn -d dmenuhandler {url}
',a': hint links spawn -d catt add {hint-url}
',ap': config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/apprentice/apprentice-all-sites.css
""
',c': hint links spawn -d st castyt {hint-url}
',dd': config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/solarized-dark/solarized-dark-all-sites.css
""
',dr': config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/darculized/darculized-all-sites.css
""
',gv': config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/gruvbox/gruvbox-all-sites.css
""
',nd': config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/nord/nord.css
""
',s': hint links spawn -d mpvallvids {hint-url}
',tr': config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/dark/dark-all-sites.css
""
',v': hint links spawn -d startmpv {hint-url}
',x': hint links spawn -d dmenuhandler {hint-url}
ao: download-open;; download-remove
ar: download-remove
colors.webpage.darkmode.algorithm:
global: lightness-cielab
colors.webpage.darkmode.enabled:
global: false
colors.webpage.darkmode.grayscale.all:
global: false
colors.webpage.preferred_color_scheme:
global: dark
completion.scrollbar.width:
global: 1
content.blocking.method:
global: both
content.desktop_capture:
global: ask
https://meet.piribauer.de: true
content.headers.user_agent:
global: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/85.0.4183.121 Safari/537.36
content.javascript.enabled:
global: true
content.media.audio_capture:
https://meet.alpenrunde.com: true
https://teams.microsoft.com: true
content.media.audio_video_capture:
https://meet.alpenrunde.com: true
https://teams.microsoft.com: true
content.media.video_capture:
https://meet.alpenrunde.com: true
https://meet.piribauer.de: true
https://teams.microsoft.com: true
content.notifications.enabled:
https://1337x.to: false
https://boards.4chan.org: true
https://boards.4channel.org: true
https://forums.ankiweb.net: true
https://iq.opengenus.org: false
https://kiwifarms.cc: true
https://nobodyhasthe.biz: true
https://old.reddit.com: false
https://riot.im: true
https://support.cloud.google.com: true
https://www.duolingo.com: false
https://www.reddit.com: false
https://www.youtube.com: false
content.notifications.presenter:
global: libnotify
content.register_protocol_handler:
https://mail.google.com?extsrc=mailto&url=%25s: false
content.user_stylesheets:
global: null
downloads.location.directory:
global: /home/alex/
downloads.location.prompt:
global: false
downloads.location.suggestion:
global: path
downloads.open_dispatcher:
global: rifle {}
downloads.position:
global: top
downloads.remove_finished:
global: 1000000
editor.command:
global:
- st
- nvim
- -f
- '{file}'
- -c
- normal {line}G{column0}l
fileselect.folder.command:
global:
- st
- -e
- ranger
- --choosedir={}
fileselect.handler:
global: external
fileselect.multiple_files.command:
global:
- st
- -e
- ranger
- --choosefiles={}
fileselect.single_file.command:
global:
- st
- -e
- ranger
- --choosefile={}
fonts.default_size:
global: 10pt
fonts.web.size.default:
global: 16
fonts.web.size.default_fixed:
global: 13
hints.border:
global: '2px solid #E3BE23'
prompt.filebrowser:
global: false
qt.highdpi:
global: true
spellcheck.languages:
global:
- en-US
- de-DE
tabs.show:
global: never
tabs.tabs_are_windows:
global: true
url.default_page:
global: file:///home/alex/.config/qutebrowser/startpage.html
url.open_base_url:
global: true
url.searchengines:
global:
DEFAULT: https://duckduckgo.com/?q={}
ddg: https://duckduckgo.com/?q={}
dw: https://www.dwds.de/wb/{}
gg: https://linggle.com/?q={}
ling: https://www.linguee.com/english-german/search?source=auto&query={}
nyaa: nyaa.si/?q={}
oz: http://www.ozdic.com/collocation-dictionary/{}
sx: https://searx.cedars.xyz/?q={}&categories=general&language=en-US
yt: https://www.youtube.com/results?search_query={}
url.start_pages:
global: file:///home/alex/.config/qutebrowser/startpage.html
zoom.default:
global: 80%

View File

@ -1,10 +1,91 @@
import dracula.draw import dracula.draw
# Load existing settings made via :set # Load existing settings made via :set
config.load_autoconfig() config.load_autoconfig(False)
#Setting Dark mode c.auto_save.session = False
#config.set("colors.webpage.darkmode.enabled", True) c.backend = "webengine"
c.bindings.commands = { "normal":
{
",C": "spawn -d st castyt {url}",
",S": "spawn -d mpvallvids {url}",
",V": "spawn -d startmpv {url}",
",X": "spawn -d dmenuhandler {url}",
",c": "hint links spawn -d st castyt {hint-url}",
",s": "hint links spawn -d mpvallvids {hint-url}",
",v": "hint links spawn -d startmpv {hint-url}",
",x": "hint links spawn -d dmenuhandler {hint-url}",
"aO": "download-open;; download-remove;; close",
"ao": "download-open;; download-remove",
"ar": "download-remove"
}
}
c.colors.webpage.preferred_color_scheme = "dark"
c.completion.scrollbar.width = 1
c.content.blocking.method = "both"
c.content.desktop_capture = "ask"
c.content.fullscreen.window = False
c.content.headers.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"
c.content.javascript.enabled = True
c.content.local_content_can_access_remote_urls = True
c.content.notifications.presenter = "libnotify"
from os.path import expanduser
c.downloads.location.directory = expanduser("~")
c.downloads.location.prompt = False
c.downloads.location.suggestion = "path"
c.downloads.open_dispatcher = "rifle {}"
c.downloads.position = "top"
c.downloads.remove_finished = 1000000
c.editor.command = [ "st", "nvim", "-f", "'{file}'", "-c", "normal", "{line}G{column}" ]
c.fileselect.folder.command = [ "st", "-e", "ranger", "--choosedir={}" ]
c.fileselect.handler = "external"
c.fileselect.multiple_files.command = [ "st", "-e", "ranger", "--choosefiles={}" ]
c.fileselect.single_file.command = [ "st", "-e", "ranger", "--choosefile={}" ]
c.fonts.default_size = "18pt"
c.fonts.statusbar = "default_size default_family"
c.fonts.web.size.default = 16
c.fonts.web.size.default_fixed = 13
c.hints.border = "2px solid #E3BE23"
c.prompt.filebrowser = False
c.qt.highdpi = False
c.spellcheck.languages = ["en-US", "de-DE"]
c.statusbar.show = "always"
c.tabs.show = "never"
c.tabs.tabs_are_windows = True
from os import environ
from os.path import join
if not(config_home:= environ["XDG_CONFIG_HOME"]):
config_home = expanduser("~/.config")
local_startpage : str = join(config_home, "qutebrowser/startpage.html")
c.url.start_pages = local_startpage
c.url.default_page = local_startpage
c.url.open_base_url = True
c.url.searchengines = {
"DEFAULT": "https://duckduckgo.com/?q={}",
"cactus": "https://latin.cactus2000.de/index.php?q={}",
"ddg": "https://duckduckgo.com/?q={}",
"dw": "https://www.dwds.de/wb/{}",
"gg": "https://linggle.com/?q={}",
"jisho": "jisho.org/search/{}",
"ling": "https://www.linguee.com/english-german/search?source=auto&query={}",
"nyaa": "nyaa.si/?q={}",
"oz": "http://www.ozdic.com/collocation-dictionary/{}",
"re": "https://bocken.org/rezepte/?q={}",
"yt": "https://www.youtube.com/results?search_query={}"
}
c.zoom.default = "160%"
dracula.draw.blood(c, { dracula.draw.blood(c, {
'spacing': { 'spacing': {
@ -12,10 +93,3 @@ dracula.draw.blood(c, {
'horizontal': 0 'horizontal': 0
} }
}) })
config.bind(',tr', 'config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/dark/dark-all-sites.css ""')
config.bind(',dr', 'config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/darculized/darculized-all-sites.css ""')
config.bind(',ap', 'config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/apprentice/apprentice-all-sites.css ""')
config.bind(',gv', 'config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/gruvbox/gruvbox-all-sites.css ""')
config.bind(',dd', 'config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/solarized-dark/solarized-dark-all-sites.css ""')
config.bind(',nd', 'config-cycle content.user_stylesheets ~/src/solarized-everything-css/css/nord/nord.css ""')

View File

@ -1,12 +1,8 @@
gre https://www.prepscholar.com/gre/a/dashboard
ys https://www.youtube.com/feed/subscriptions ys https://www.youtube.com/feed/subscriptions
moo https://moodle-app2.let.ethz.ch/my/ moo https://moodle-app2.let.ethz.ch/my/
fit https://boards.4channel.org/fit/ fit https://boards.4channel.org/fit/
wsg https://boards.4channel.org/wsg/ wsg https://boards.4channel.org/wsg/
bant https://boards.4chan.org/bant/ bant https://boards.4chan.org/bant/
kanji https://kanji.sljfaq.org/draw-canvas.html
mystudies https://www.lehrbetrieb.ethz.ch/myStudies/studWillkommen.view mystudies https://www.lehrbetrieb.ethz.ch/myStudies/studWillkommen.view
out https://boards.4channel.org/out/ out https://boards.4channel.org/out/
g https://boards.4channel.org/g/ g https://boards.4channel.org/g/
oo file:///home/alex/.config/qutebrowser/startpage.html
ent in a real company to https://new.abb.com/ch/ueber-uns/contact-center