From daba47aae0f8be66e12e01bd2a7a50443054973f Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Thu, 23 Nov 2023 15:04:38 +0100 Subject: [PATCH] Update qutebrowser config. --- .config/qutebrowser/config.py | 58 ++++++++++++++++++++++++++--------- 1 file changed, 43 insertions(+), 15 deletions(-) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index a88db3f..5794795 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -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("m", "spawn mpv {url}") -config.bind("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("ba", "buku add") -config.bind("be", "buku edit") -config.bind("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("y", "spawn --userscript yt-dlp") -config.bind("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("f", "open {primary}") -config.bind("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("", "jseval --quiet scrollHelper.scrollPage(0.8)") config.bind("", "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