Update qutebrowser config.
This commit is contained in:
parent
54885d0646
commit
daba47aae0
@ -25,8 +25,8 @@ c.colors.webpage.bg = "black"
|
||||
c.colors.webpage.darkmode.algorithm = "lightness-cielab"
|
||||
c.colors.webpage.darkmode.threshold.text = 150
|
||||
c.colors.webpage.darkmode.threshold.background = 100
|
||||
c.colors.webpage.darkmode.policy.images = "always"
|
||||
c.colors.webpage.darkmode.grayscale.images = 0.35
|
||||
c.colors.webpage.darkmode.policy.images = "never"
|
||||
# c.colors.webpage.darkmode.grayscale.images = 0.35
|
||||
|
||||
# change startpage and default page
|
||||
c.url.start_pages = ["https://startpage.cronyakatsuki.xyz"]
|
||||
@ -105,22 +105,24 @@ c.aliases["buku"] = "spawn --userscript buku"
|
||||
|
||||
##-- Bindings --##
|
||||
# launch with mpv
|
||||
config.bind("<Space>m", "spawn mpv {url}")
|
||||
config.bind("<Space>fm", "hint links spawn mpv {hint-url}")
|
||||
config.bind(",m", "spawn mpv {url}")
|
||||
config.bind(",fm", "hint links spawn mpv {hint-url}")
|
||||
|
||||
# buku bundings
|
||||
config.bind("b", "buku open")
|
||||
config.bind("<Space>ba", "buku add")
|
||||
config.bind("<Space>be", "buku edit")
|
||||
config.bind("<Space>bd", "buku delete")
|
||||
config.bind("B", "buku open -t")
|
||||
config.bind(",ba", "buku add")
|
||||
config.bind(",be", "buku edit")
|
||||
config.bind(",bd", "buku delete")
|
||||
config.bind(",bfa", "hint links spawn --userscript buku add")
|
||||
|
||||
# yt-dlp
|
||||
config.bind("<Space>y", "spawn --userscript yt-dlp")
|
||||
config.bind("<Space>fy", "hint links userscript yt-dlp")
|
||||
config.bind(",y", "spawn --userscript yt-dlp")
|
||||
config.bind(",fy", "hint links userscript yt-dlp")
|
||||
|
||||
# search current selection
|
||||
config.bind("<Space>f", "open {primary}")
|
||||
config.bind("<Space>F", "open --tab {primary}")
|
||||
config.bind(",fo", "open {primary}")
|
||||
config.bind(",fO", "open --tab {primary}")
|
||||
|
||||
# yank found url
|
||||
config.bind("yf", "hint links yank")
|
||||
@ -131,13 +133,16 @@ config.bind(
|
||||
)
|
||||
|
||||
# fix scrolling
|
||||
config.bind("j", "jseval --quiet scrollHelper.scrollBy(200)")
|
||||
config.bind("k", "jseval --quiet scrollHelper.scrollBy(-200)")
|
||||
config.bind("j", "jseval --quiet scrollHelper.scrollBy(50)")
|
||||
config.bind("k", "jseval --quiet scrollHelper.scrollBy(-50)")
|
||||
config.bind("<Ctrl-D>", "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("G", "jseval --quiet scrollHelper.scrollToPercent(100)")
|
||||
|
||||
# KeePassXC binding
|
||||
config.bind('pw', 'spawn --userscript qute-keepassxc --key crony@cronyakatsuki.xyz')
|
||||
|
||||
# remove clickbard and gdpr banners
|
||||
config.bind(
|
||||
"ek",
|
||||
@ -154,9 +159,32 @@ config.bind(
|
||||
)
|
||||
|
||||
##-- Font Settings --##
|
||||
c.fonts.default_family = '"Source Code Pro"'
|
||||
c.fonts.default_size = "11pt"
|
||||
c.fonts.default_family = '"Dejavu Sans Mono"'
|
||||
c.fonts.default_size = "10pt"
|
||||
c.fonts.completion.entry = 'default_size "default_family"'
|
||||
c.fonts.debug_console = 'default_size "default_family"'
|
||||
c.fonts.prompts = "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
|
||||
|
Loading…
Reference in New Issue
Block a user