adding dumbness

This commit is contained in:
Chris Cochrun 2024-12-11 16:14:53 -06:00
parent 53b7d39fcd
commit d7e9409d8c

View file

@ -335,7 +335,7 @@ c.colors.tabs.selected.even.bg = base05
# Background color for webpages if unset (or empty to use the theme's
# color).
# c.colors.webpage.bg = base00
c.colors.webpage.bg = base00
## Background color of the completion widget category headers.
@ -1079,7 +1079,7 @@ c.content.blocking.method = 'both'
## QtWebEngine, writing the clipboard as response to a user interaction
## is always allowed.
## Type: Bool
# c.content.javascript.can_access_clipboard = False
c.content.javascript.clipboard = 'access-paste'
## Allow JavaScript to close tabs.
## Type: Bool
@ -2487,7 +2487,6 @@ config.bind('<Ctrl-j>', 'completion-item-focus next', mode='command')
# config.bind('Y', 'prompt-accept --save yes', mode='yesno')
# config.bind('n', 'prompt-accept no', mode='yesno')
# config.bind('y', 'prompt-accept yes', mode='yesno')
## Bindings for MPV and YTDL
config.bind("v", 'hint links spawn --detach empv "{hint-url}"')
# config.bind("gv", "spawn --detach mpv --profile=fast --force-window yes --ytdl=bestvideo[height<=?720][fps<=?30]+bestaudio/best \'{url}\'")
@ -2515,3 +2514,17 @@ config.bind('pt', 'tab-pin')
config.bind('tm', 'tab-move')
config.bind('st', 'config-cycle tabs.show always switching')
config.bind('ss', 'config-cycle statusbar.show always in-mode')
# Build the sfq command
sfq_base_dir = "~/.config/qutebrowser/userscripts/swapforqute/"
sfq_script_path = sfq_base_dir + "main.py"
sfq_conf_path = sfq_base_dir + "config.json"
sfq_cmd = "--userscript {} -c {}".format(sfq_script_path, sfq_conf_path)
# Assign the alias
c.aliases['sfq'] = "cmd-set-text -s :spawn {} --cmd 'open' -u ".format(sfq_cmd)
c.aliases['sfqt'] = "cmd-set-text -s :spawn {} --cmd 'open -t' -u ".format(sfq_cmd)
config.bind('o', 'cmd-set-text -s :open')
config.bind('O', 'cmd-set-text -s :open -t')