This repository has been archived on 2023-10-17. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/qutebrowser/config.py

528 lines
20 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Autogenerated config.py
#
# NOTE: config.py is intended for advanced users who are comfortable
# with manually migrating the config file on qutebrowser upgrades. If
# you prefer, you can also configure qutebrowser using the
# :set/:bind/:config-* commands without having to write a config.py
# file.
#
# Documentation:
# qute://help/configuring.html
# qute://help/settings.html
# Change the argument to True to still load settings configured via autoconfig.yml
config.load_autoconfig(False)
# Which cookies to accept. With QtWebEngine, this setting also controls
# other features with tracking capabilities similar to those of cookies;
# including IndexedDB, DOM storage, filesystem API, service workers, and
# AppCache. Note that with QtWebKit, only `all` and `never` are
# supported as per-domain values. Setting `no-3rdparty` or `no-
# unknown-3rdparty` per-domain on QtWebKit will have the same effect as
# `all`. If this setting is used with URL patterns, the pattern gets
# applied to the origin/first party URL of the page making the request,
# not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
# from URLs, so URL patterns using paths will not match. With
# QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
# you will typically need to set this setting for `example.com` when the
# cookie is set on `somesubdomain.example.com` for it to work properly.
# To debug issues with this setting, start qutebrowser with `--debug
# --logfilter network --debug-flag log-cookies` which will show all
# cookies being set.
# Type: String
# Valid values:
# - all: Accept all cookies.
# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
# - never: Don't accept cookies at all.
config.set('content.cookies.accept', 'all', 'chrome-devtools://*')
# Which cookies to accept. With QtWebEngine, this setting also controls
# other features with tracking capabilities similar to those of cookies;
# including IndexedDB, DOM storage, filesystem API, service workers, and
# AppCache. Note that with QtWebKit, only `all` and `never` are
# supported as per-domain values. Setting `no-3rdparty` or `no-
# unknown-3rdparty` per-domain on QtWebKit will have the same effect as
# `all`. If this setting is used with URL patterns, the pattern gets
# applied to the origin/first party URL of the page making the request,
# not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
# from URLs, so URL patterns using paths will not match. With
# QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
# you will typically need to set this setting for `example.com` when the
# cookie is set on `somesubdomain.example.com` for it to work properly.
# To debug issues with this setting, start qutebrowser with `--debug
# --logfilter network --debug-flag log-cookies` which will show all
# cookies being set.
# Type: String
# Valid values:
# - all: Accept all cookies.
# - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
# - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
# - never: Don't accept cookies at all.
config.set('content.cookies.accept', 'all', 'devtools://*')
# Value to send in the `Accept-Language` header. Note that the value
# read from JavaScript is always the global value.
# Type: String
config.set('content.headers.accept_language', '', 'https://matchmaker.krunker.io/*')
# User agent to send. The following placeholders are defined: *
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
# The underlying WebKit version (set to a fixed value with
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
# running qutebrowser version. The default value is equal to the
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
# read from JavaScript is always the global value. With QtWebEngine
# between 5.12 and 5.14 (inclusive), changing the value exposed to
# JavaScript requires a restart.
# Type: FormatString
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/')
# User agent to send. The following placeholders are defined: *
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
# The underlying WebKit version (set to a fixed value with
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
# running qutebrowser version. The default value is equal to the
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
# read from JavaScript is always the global value. With QtWebEngine
# between 5.12 and 5.14 (inclusive), changing the value exposed to
# JavaScript requires a restart.
# Type: FormatString
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:90.0) Gecko/20100101 Firefox/90.0', 'https://accounts.google.com/*')
# User agent to send. The following placeholders are defined: *
# `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
# The underlying WebKit version (set to a fixed value with
# QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
# QtWebEngine. * `{qt_version}`: The underlying Qt version. *
# `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
# QtWebEngine. * `{upstream_browser_version}`: The corresponding
# Safari/Chrome version. * `{qutebrowser_version}`: The currently
# running qutebrowser version. The default value is equal to the
# unchanged user agent of QtWebKit/QtWebEngine. Note that the value
# read from JavaScript is always the global value. With QtWebEngine
# between 5.12 and 5.14 (inclusive), changing the value exposed to
# JavaScript requires a restart.
# Type: FormatString
config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*')
# Load images automatically in web pages.
# Type: Bool
config.set('content.images', True, 'chrome-devtools://*')
# Load images automatically in web pages.
# Type: Bool
config.set('content.images', True, 'devtools://*')
# Enable JavaScript.
# Type: Bool
config.set('content.javascript.enabled', True, 'chrome-devtools://*')
# Enable JavaScript.
# Type: Bool
config.set('content.javascript.enabled', True, 'devtools://*')
# Enable JavaScript.
# Type: Bool
config.set('content.javascript.enabled', True, 'chrome://*/*')
# Enable JavaScript.
# Type: Bool
config.set('content.javascript.enabled', True, 'qute://*/*')
#####################################################################################
#Configuraciones personales DiegoFcs
#####################################################################################
#Configuraciones de tipos de letra#
# Default font families to use. Whenever "default_family" is used in a
# font setting, it's replaced with the fonts listed here. If set to an
# empty value, a system-specific monospace default is used.
# Type: List of Font, or Font
c.fonts.default_family = '"Hack Nerd Font"'
# Default font size to use. Whenever "default_size" is used in a font
# setting, it's replaced with the size listed here. Valid values are
# either a float value with a "pt" suffix, or an integer value with a
# "px" suffix.
# Type: String
c.fonts.default_size = '8pt'
# Font used in the completion widget.
# Type: Font
c.fonts.completion.entry = '8pt "Hack Nerd Font"'
# Font used for the debugging console.
# Type: Font
c.fonts.debug_console = '8pt "Hack Nerd Font"'
# Font used for prompts.
# Type: Font
c.fonts.prompts = '8pt "Hack Nerd Font"'
# Font used in the statusbar.
# Type: Font
c.fonts.statusbar = '8pt "Hack Nerd Font"'
#Configuracion de pagina de inicio#
# Setting default page for when opening new tabs or new windows with
# commands like :open -t and :open -w .
c.url.default_page = 'file:///home/diegofcs/.config/startpages/term/index.html'
c.url.start_pages = 'file:///home/diegofcs/.config/startpages/term/index.html'
#Configuracion de la visibilidad de las tabs#
# When to show the tab bar.
# Type: String
# Valid values:
# - always: Always show the tab bar.
# - never: Always hide the tab bar.
# - multiple: Hide the tab bar if only one tab is open.
# - switching: Show the tab bar when switching tabs.
c.tabs.show = 'switching'
#Configuracion de descargas#
# Directory to save downloads to. If unset, a sensible OS-specific
# default is used.
# Type: Directory
c.downloads.location.directory = '~/Descargas'
c.downloads.location.prompt = False
c.downloads.remove_finished = 500
#Configuracion de color#
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser)
# Base16 qutebrowser template by theova
# Grayscale Dark scheme by Alexandre Gavioli (https://github.com/Alexx2/)
# set qutebrowser colors
# Text color of the completion widget. May be a single color to use for
# all columns or a list of three colors, one for each column.
c.colors.completion.fg = "#b9b9b9"
# Background color of the completion widget for odd rows.
c.colors.completion.odd.bg = "#252525"
# Background color of the completion widget for even rows.
c.colors.completion.even.bg = "#101010"
# Foreground color of completion widget category headers.
c.colors.completion.category.fg = "#a0a0a0"
# Background color of the completion widget category headers.
c.colors.completion.category.bg = "#101010"
# Top border color of the completion widget category headers.
c.colors.completion.category.border.top = "#101010"
# Bottom border color of the completion widget category headers.
c.colors.completion.category.border.bottom = "#101010"
# Foreground color of the selected completion item.
c.colors.completion.item.selected.fg = "#b9b9b9"
# Background color of the selected completion item.
c.colors.completion.item.selected.bg = "#464646"
# Top border color of the selected completion item.
c.colors.completion.item.selected.border.top = "#464646"
# Bottom border color of the selected completion item.
c.colors.completion.item.selected.border.bottom = "#464646"
# Foreground color of the matched text in the selected completion item.
c.colors.completion.item.selected.match.fg = "#8e8e8e"
# Foreground color of the matched text in the completion.
c.colors.completion.match.fg = "#8e8e8e"
# Color of the scrollbar handle in the completion view.
c.colors.completion.scrollbar.fg = "#b9b9b9"
# Color of the scrollbar in the completion view.
c.colors.completion.scrollbar.bg = "#101010"
# Background color of disabled items in the context menu.
c.colors.contextmenu.disabled.bg = "#252525"
# Foreground color of disabled items in the context menu.
c.colors.contextmenu.disabled.fg = "#ababab"
# Background color of the context menu. If set to null, the Qt default is used.
c.colors.contextmenu.menu.bg = "#101010"
# Foreground color of the context menu. If set to null, the Qt default is used.
c.colors.contextmenu.menu.fg = "#b9b9b9"
# Background color of the context menus selected item. If set to null, the Qt default is used.
c.colors.contextmenu.selected.bg = "#464646"
#Foreground color of the context menus selected item. If set to null, the Qt default is used.
c.colors.contextmenu.selected.fg = "#b9b9b9"
# Background color for the download bar.
c.colors.downloads.bar.bg = "#101010"
# Color gradient start for download text.
c.colors.downloads.start.fg = "#101010"
# Color gradient start for download backgrounds.
c.colors.downloads.start.bg = "#686868"
# Color gradient end for download text.
c.colors.downloads.stop.fg = "#101010"
# Color gradient stop for download backgrounds.
c.colors.downloads.stop.bg = "#868686"
# Foreground color for downloads with errors.
c.colors.downloads.error.fg = "#7c7c7c"
# Font color for hints.
c.colors.hints.fg = "#101010"
# Foreground color of the URL in the statusbar when there's a warning.
# Type: QssColor
c.colors.statusbar.url.warn.fg = "#7c7c7c"
#hints.border
#CSS border value for hints.
#Type: String
c.hints.border = "#101010"
# Background color for hints. Note that you can use a `rgba(...)` value
# for transparency.
c.colors.hints.bg = "#a0a0a0"
# Font color for the matched part of hints.
c.colors.hints.match.fg = "#b9b9b9"
# Text color for the keyhint widget.
c.colors.keyhint.fg = "#b9b9b9"
# Highlight color for keys to complete the current keychain.
c.colors.keyhint.suffix.fg = "#b9b9b9"
# Background color of the keyhint widget.
c.colors.keyhint.bg = "#101010"
# Foreground color of an error message.
c.colors.messages.error.fg = "#101010"
# Background color of an error message.
c.colors.messages.error.bg = "#7c7c7c"
# Border color of an error message.
c.colors.messages.error.border = "#7c7c7c"
# Foreground color of a warning message.
c.colors.messages.warning.fg = "#101010"
# Background color of a warning message.
c.colors.messages.warning.bg = "#747474"
# Border color of a warning message.
c.colors.messages.warning.border = "#747474"
# Foreground color of an info message.
c.colors.messages.info.fg = "#b9b9b9"
# Background color of an info message.
c.colors.messages.info.bg = "#101010"
# Border color of an info message.
c.colors.messages.info.border = "#101010"
# Foreground color for prompts.
c.colors.prompts.fg = "#b9b9b9"
# Border used around UI elements in prompts.
c.colors.prompts.border = "#101010"
# Background color for prompts.
c.colors.prompts.bg = "#101010"
# Background color for the selected item in filename prompts.
c.colors.prompts.selected.bg = "#464646"
# Foreground color for the selected item in filename prompts.
c.colors.prompts.selected.fg = "#b9b9b9"
# Foreground color of the statusbar.
c.colors.statusbar.normal.fg = "#8e8e8e"
# Background color of the statusbar.
c.colors.statusbar.normal.bg = "#101010"
# Foreground color of the statusbar in insert mode.
c.colors.statusbar.insert.fg = "#101010"
# Background color of the statusbar in insert mode.
c.colors.statusbar.insert.bg = "#686868"
# Foreground color of the statusbar in passthrough mode.
c.colors.statusbar.passthrough.fg = "#101010"
# Background color of the statusbar in passthrough mode.
c.colors.statusbar.passthrough.bg = "#868686"
# Foreground color of the statusbar in private browsing mode.
c.colors.statusbar.private.fg = "#101010"
# Background color of the statusbar in private browsing mode.
c.colors.statusbar.private.bg = "#252525"
# Foreground color of the statusbar in command mode.
c.colors.statusbar.command.fg = "#b9b9b9"
# Background color of the statusbar in command mode.
c.colors.statusbar.command.bg = "#101010"
# Foreground color of the statusbar in private browsing + command mode.
c.colors.statusbar.command.private.fg = "#b9b9b9"
# Background color of the statusbar in private browsing + command mode.
c.colors.statusbar.command.private.bg = "#101010"
# Foreground color of the statusbar in caret mode.
c.colors.statusbar.caret.fg = "#101010"
# Background color of the statusbar in caret mode.
c.colors.statusbar.caret.bg = "#747474"
# Foreground color of the statusbar in caret mode with a selection.
c.colors.statusbar.caret.selection.fg = "#101010"
# Background color of the statusbar in caret mode with a selection.
c.colors.statusbar.caret.selection.bg = "#686868"
# Background color of the progress bar.
c.colors.statusbar.progress.bg = "#686868"
# Default foreground color of the URL in the statusbar.
c.colors.statusbar.url.fg = "#b9b9b9"
# Foreground color of the URL in the statusbar on error.
c.colors.statusbar.url.error.fg = "#7c7c7c"
# Foreground color of the URL in the statusbar for hovered links.
c.colors.statusbar.url.hover.fg = "#b9b9b9"
# Foreground color of the URL in the statusbar on successful load
# (http).
c.colors.statusbar.url.success.http.fg = "#868686"
# Foreground color of the URL in the statusbar on successful load
# (https).
c.colors.statusbar.url.success.https.fg = "#8e8e8e"
# Foreground color of the URL in the statusbar when there's a warning.
c.colors.statusbar.url.warn.fg = "#747474"
# Background color of the tab bar.
c.colors.tabs.bar.bg = "#101010"
# Color gradient start for the tab indicator.
c.colors.tabs.indicator.start = "#686868"
# Color gradient end for the tab indicator.
c.colors.tabs.indicator.stop = "#868686"
# Color for the tab indicator on errors.
c.colors.tabs.indicator.error = "#7c7c7c"
# Foreground color of unselected odd tabs.
c.colors.tabs.odd.fg = "#b9b9b9"
# Background color of unselected odd tabs.
c.colors.tabs.odd.bg = "#252525"
# Foreground color of unselected even tabs.
c.colors.tabs.even.fg = "#b9b9b9"
# Background color of unselected even tabs.
c.colors.tabs.even.bg = "#101010"
# Background color of pinned unselected even tabs.
c.colors.tabs.pinned.even.bg = "#868686"
# Foreground color of pinned unselected even tabs.
c.colors.tabs.pinned.even.fg = "#f7f7f7"
# Background color of pinned unselected odd tabs.
c.colors.tabs.pinned.odd.bg = "#8e8e8e"
# Foreground color of pinned unselected odd tabs.
c.colors.tabs.pinned.odd.fg = "#f7f7f7"
# Background color of pinned selected even tabs.
c.colors.tabs.pinned.selected.even.bg = "#464646"
# Foreground color of pinned selected even tabs.
c.colors.tabs.pinned.selected.even.fg = "#b9b9b9"
# Background color of pinned selected odd tabs.
c.colors.tabs.pinned.selected.odd.bg = "#464646"
# Foreground color of pinned selected odd tabs.
c.colors.tabs.pinned.selected.odd.fg = "#b9b9b9"
# Foreground color of selected odd tabs.
c.colors.tabs.selected.odd.fg = "#b9b9b9"
# Background color of selected odd tabs.
c.colors.tabs.selected.odd.bg = "#464646"
# Foreground color of selected even tabs.
c.colors.tabs.selected.even.fg = "#b9b9b9"
# Background color of selected even tabs.
c.colors.tabs.selected.even.bg = "#464646"
# Background color for webpages if unset (or empty to use the theme's
# color).
c.colors.webpage.bg = "#101010"
# Text color of the completion widget. May be a single color to use for
# all columns or a list of three colors, one for each column.
# Type: List of QtColor, or QtColor
#c.colors.completion.fg = ['#f7f7f7', 'white', 'white']
# Background color of the completion widget for odd rows.
# Type: QssColor
c.colors.completion.odd.bg = '#252525'
# Background color of the completion widget for even rows.
# Type: QssColor
c.colors.completion.even.bg = '#464646'
# Foreground color of completion widget category headers.
# Type: QtColor
c.colors.completion.category.fg = '#999999'
##########################################################
# Keybinds personalizados
##########################################################
config.bind('Y', 'hint links spawn bash -c "~/.local/bin/qute-dl "$1"" _ {hint-url}')
#config.bind('M', 'hint links spawn nohup mpv --cache=yes --demuxer-max-bytes=500M --demuxer-max-back-bytes=100M --save-position-on-quit=no -ytdl-format="bv*[height=720][ext=mp4][fps=30]+ba/b" {hint-url}')
#########################################################
#Bangs!
########################################################
c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}', 'aw': 'https://wiki.archlinux.org/?search={}', 're': 'https://www.reddit.com/r/{}', 'yt': 'https://www.youtube.com/results?search_query={}'}