diff --git a/.config/qutebrowser/completion.py b/.config/qutebrowser/completion.py new file mode 100644 index 0000000..8e3227f --- /dev/null +++ b/.config/qutebrowser/completion.py @@ -0,0 +1,96 @@ +# pylint: disable=C0111 +from qutebrowser.config.configfiles import ConfigAPI # noqa: F401 +from qutebrowser.config.config import ConfigContainer # noqa: F401 +config: ConfigAPI = config # noqa: F821 pylint: disable=E0602,C0103 +c: ConfigContainer = c # noqa: F821 pylint: disable=E0602,C0103 + +# Number of commands to save in the command history. 0: no history / -1: +# unlimited +# Type: Int +c.completion.cmd_history_max_items = 200 + +# Delay (in milliseconds) before updating completions after typing a +# character. +# Type: Int +c.completion.delay = 150 + +# Default filesystem autocomplete suggestions for :open. The elements of +# this list show up in the completion window under the Filesystem +# category when the command line contains `:open` but no argument. +# Type: List of String +c.completion.favorite_paths = [] + +# Height (in pixels or as percentage of the window) of the completion. +# Type: PercOrInt +c.completion.height = '33%' + +# Minimum amount of characters needed to update completions. +# Type: Int +c.completion.min_chars = 2 + +# Which categories to show (in which order) in the :open completion. +# Type: FlagList +# Valid values: +# - searchengines +# - quickmarks +# - bookmarks +# - history +# - filesystem +c.completion.open_categories = [ + 'searchengines', + 'quickmarks', + 'bookmarks', + 'history', + 'filesystem' +] + +# Move on to the next part when there's only one possible completion +# left. +# Type: Bool +c.completion.quick = True + +# Padding (in pixels) of the scrollbar handle in the completion window. +# Type: Int +c.completion.scrollbar.padding = 1 + +# Width (in pixels) of the scrollbar in the completion window. +# Type: Int +c.completion.scrollbar.width = 5 + +# When to show the autocompletion window. +# Type: String +# Valid values: +# - always: Whenever a completion is available. +# - auto: Whenever a completion is requested. +# - never: Never. +c.completion.show = 'always' + +# Shrink the completion to be smaller than the configured size if there +# are no scrollbars. +# Type: Bool +c.completion.shrink = True + +# Format of timestamps (e.g. for the history completion). See +# https://sqlite.org/lang_datefunc.html and +# https://docs.python.org/3/library/datetime.html#strftime-strptime- +# behavior for allowed substitutions, qutebrowser uses both sqlite and +# Python to format its timestamps. +# Type: String +c.completion.timestamp_format = '%Y-%m-%d %H:%M' + +# Execute the best-matching command on a partial match. +# Type: Bool +c.completion.use_best_match = True + +# A list of patterns which should not be shown in the history. This only +# affects the completion. Matching URLs are still saved in the history +# (and visible on the `:history` page), but hidden in the completion. +# Changing this setting will cause the completion history to be +# regenerated on the next start, which will take a short while. +# Type: List of UrlPattern +c.completion.web_history.exclude = [] + +# Number of URLs to show in the web history. 0: no history / -1: +# unlimited +# Type: Int +c.completion.web_history.max_items = -1 diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py new file mode 100644 index 0000000..220eb35 --- /dev/null +++ b/.config/qutebrowser/config.py @@ -0,0 +1,49 @@ +# pylint: disable=C0111 +from qutebrowser.config.configfiles import ConfigAPI # noqa: F401 +from qutebrowser.config.config import ConfigContainer # noqa: F401 +config: ConfigAPI = config # noqa: F821 pylint: disable=E0602,C0103 +c: ConfigContainer = c # noqa: F821 pylint: disable=E0602,C0103 + +# This is here so configs done via the GUI are still loaded. +# Remove it to not load settings done via the GUI. +config.load_autoconfig(True) + +# Aliases for commands. The keys of the given dictionary are the +# aliases, while the values are the commands they map to. +# Type: Dict +c.aliases = { + 'w': 'session-save', + 'q': 'close', + 'qa': 'quit', + 'wq': 'quit --save', + 'wqa': 'quit --save' +} + +# Time interval (in milliseconds) between auto-saves of +# config/cookies/etc. +# Type: Int +c.auto_save.interval = 15000 + +# Enable smooth scrolling for web pages. Note smooth scrolling does not +# work with the `:scroll-px` command. +# Type: Bool +c.scrolling.smooth = True + +c.spellcheck.languages = [ + 'en-US', + 'fr-FR', +] + +config.source('completion.py') +config.source('content.py') +config.source('downloads.py') +config.source('editor.py') +config.source('keybinds.py') +config.source('fileselect.py') +config.source('hints.py') +config.source('input.py') +config.source('statusbar.py') +config.source('tabs.py') +config.source('url.py') +config.source('window.py') +config.source('nord.py') diff --git a/.config/qutebrowser/content.py b/.config/qutebrowser/content.py new file mode 100644 index 0000000..6b612d8 --- /dev/null +++ b/.config/qutebrowser/content.py @@ -0,0 +1,486 @@ +# pylint: disable=C0111 +from qutebrowser.config.configfiles import ConfigAPI # noqa: F401 +from qutebrowser.config.config import ConfigContainer # noqa: F401 +config: ConfigAPI = config # noqa: F821 pylint: disable=E0602,C0103 +c: ConfigContainer = c # noqa: F821 pylint: disable=E0602,C0103 + +# Automatically start playing `