Update qutebrowser config.

This commit is contained in:
CronyAkatsuki 2023-11-23 15:04:38 +01:00
parent 54885d0646
commit daba47aae0

View File

@ -25,8 +25,8 @@ c.colors.webpage.bg = "black"
c.colors.webpage.darkmode.algorithm = "lightness-cielab" c.colors.webpage.darkmode.algorithm = "lightness-cielab"
c.colors.webpage.darkmode.threshold.text = 150 c.colors.webpage.darkmode.threshold.text = 150
c.colors.webpage.darkmode.threshold.background = 100 c.colors.webpage.darkmode.threshold.background = 100
c.colors.webpage.darkmode.policy.images = "always" c.colors.webpage.darkmode.policy.images = "never"
c.colors.webpage.darkmode.grayscale.images = 0.35 # c.colors.webpage.darkmode.grayscale.images = 0.35
# change startpage and default page # change startpage and default page
c.url.start_pages = ["https://startpage.cronyakatsuki.xyz"] c.url.start_pages = ["https://startpage.cronyakatsuki.xyz"]
@ -105,22 +105,24 @@ c.aliases["buku"] = "spawn --userscript buku"
##-- Bindings --## ##-- Bindings --##
# launch with mpv # launch with mpv
config.bind("<Space>m", "spawn mpv {url}") config.bind(",m", "spawn mpv {url}")
config.bind("<Space>fm", "hint links spawn mpv {hint-url}") config.bind(",fm", "hint links spawn mpv {hint-url}")
# buku bundings # buku bundings
config.bind("b", "buku open") config.bind("b", "buku open")
config.bind("<Space>ba", "buku add") config.bind("B", "buku open -t")
config.bind("<Space>be", "buku edit") config.bind(",ba", "buku add")
config.bind("<Space>bd", "buku delete") config.bind(",be", "buku edit")
config.bind(",bd", "buku delete")
config.bind(",bfa", "hint links spawn --userscript buku add")
# yt-dlp # yt-dlp
config.bind("<Space>y", "spawn --userscript yt-dlp") config.bind(",y", "spawn --userscript yt-dlp")
config.bind("<Space>fy", "hint links userscript yt-dlp") config.bind(",fy", "hint links userscript yt-dlp")
# search current selection # search current selection
config.bind("<Space>f", "open {primary}") config.bind(",fo", "open {primary}")
config.bind("<Space>F", "open --tab {primary}") config.bind(",fO", "open --tab {primary}")
# yank found url # yank found url
config.bind("yf", "hint links yank") config.bind("yf", "hint links yank")
@ -131,13 +133,16 @@ config.bind(
) )
# fix scrolling # fix scrolling
config.bind("j", "jseval --quiet scrollHelper.scrollBy(200)") config.bind("j", "jseval --quiet scrollHelper.scrollBy(50)")
config.bind("k", "jseval --quiet scrollHelper.scrollBy(-200)") config.bind("k", "jseval --quiet scrollHelper.scrollBy(-50)")
config.bind("<Ctrl-D>", "jseval --quiet scrollHelper.scrollPage(0.8)") config.bind("<Ctrl-D>", "jseval --quiet scrollHelper.scrollPage(0.8)")
config.bind("<Ctrl-U>", "jseval --quiet scrollHelper.scrollPage(-0.8)") config.bind("<Ctrl-U>", "jseval --quiet scrollHelper.scrollPage(-0.8)")
config.bind("gg", "jseval --quiet scrollHelper.scrollTo(0)") config.bind("gg", "jseval --quiet scrollHelper.scrollTo(0)")
config.bind("G", "jseval --quiet scrollHelper.scrollToPercent(100)") config.bind("G", "jseval --quiet scrollHelper.scrollToPercent(100)")
# KeePassXC binding
config.bind('pw', 'spawn --userscript qute-keepassxc --key crony@cronyakatsuki.xyz')
# remove clickbard and gdpr banners # remove clickbard and gdpr banners
config.bind( config.bind(
"ek", "ek",
@ -154,9 +159,32 @@ config.bind(
) )
##-- Font Settings --## ##-- Font Settings --##
c.fonts.default_family = '"Source Code Pro"' c.fonts.default_family = '"Dejavu Sans Mono"'
c.fonts.default_size = "11pt" c.fonts.default_size = "10pt"
c.fonts.completion.entry = 'default_size "default_family"' c.fonts.completion.entry = 'default_size "default_family"'
c.fonts.debug_console = 'default_size "default_family"' c.fonts.debug_console = 'default_size "default_family"'
c.fonts.prompts = "default_size default_family" c.fonts.prompts = "default_size default_family"
c.fonts.statusbar = 'default_size "default_family"' c.fonts.statusbar = 'default_size "default_family"'
##-- FilePicker (nnn on crrack)--##
fileselect_cmd = [
"alacritty",
"--class",
"filepicker,filepicker",
"-e",
"tmux",
"new",
"-s",
"filepicker",
"env",
"LC_COLLATE=C",
"nnn",
"-P",
"p",
"-p",
"{}",
]
c.fileselect.handler = "external"
c.fileselect.folder.command = fileselect_cmd
c.fileselect.single_file.command = fileselect_cmd
c.fileselect.multiple_files.command = fileselect_cmd