Simplify Qutebrowser config
This commit is contained in:
parent
e5509ce603
commit
d72261c3a6
@ -31,384 +31,57 @@ import sys, os
|
|||||||
|
|
||||||
* General config
|
* General config
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# 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()
|
|
||||||
|
|
||||||
# Aliases for commands. The keys of the given dictionary are the
|
|
||||||
c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
|
c.aliases = {'w': 'session-save', 'q': 'quit', 'wq': 'quit --save'}
|
||||||
|
|
||||||
# Time interval (in milliseconds) between auto-saves of config/cookies/etc.
|
|
||||||
c.auto_save.interval = 15000
|
|
||||||
|
|
||||||
# Always restore open sites when qutebrowser is reopened.
|
|
||||||
c.auto_save.session = False
|
c.auto_save.session = False
|
||||||
|
|
||||||
# Backend to use to display websites
|
|
||||||
c.backend = 'webengine'
|
c.backend = 'webengine'
|
||||||
|
|
||||||
# Require a confirmation before quitting the application.
|
|
||||||
# Valid values:
|
|
||||||
# - always: Always show a confirmation.
|
|
||||||
# - multiple-tabs: Show a confirmation if multiple tabs are opened.
|
|
||||||
# - downloads: Show a confirmation if downloads are running
|
|
||||||
# - never: Never show a confirmation.
|
|
||||||
c.confirm_quit = ['downloads']
|
c.confirm_quit = ['downloads']
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Content
|
* Content
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# Automatically start playing `<video>` elements
|
|
||||||
c.content.autoplay = False
|
c.content.autoplay = False
|
||||||
|
|
||||||
c.content.notifications = False
|
c.content.notifications = False
|
||||||
|
|
||||||
# Allow websites to request geolocations.
|
|
||||||
c.content.geolocation = 'ask'
|
c.content.geolocation = 'ask'
|
||||||
|
|
||||||
# Show javascript alerts.
|
|
||||||
c.content.javascript.alert = True
|
c.content.javascript.alert = True
|
||||||
|
|
||||||
# Allow JavaScript to read from or write to the clipboard
|
|
||||||
c.content.javascript.can_access_clipboard = True
|
c.content.javascript.can_access_clipboard = True
|
||||||
|
|
||||||
# Allow websites to record audio/video.
|
|
||||||
c.content.media_capture = 'ask'
|
c.content.media_capture = 'ask'
|
||||||
|
c.content.pdfjs = True
|
||||||
# Allow pdf.js to view PDF files in the browser
|
|
||||||
c.content.pdfjs = False
|
|
||||||
|
|
||||||
# Proxy to use. In addition to the listed values, you can use a
|
|
||||||
# `socks://...` or `http://...` URL.
|
|
||||||
# Valid values:
|
|
||||||
# - system: Use the system wide proxy.
|
|
||||||
# - none: Don't use any proxy
|
|
||||||
c.content.proxy = 'system'
|
c.content.proxy = 'system'
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Downloads
|
* Downloads
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# Directory to save downloads to
|
|
||||||
c.downloads.location.directory = '$HOME/Downloads/'
|
c.downloads.location.directory = '$HOME/Downloads/'
|
||||||
|
|
||||||
# Prompt the user for the download location
|
|
||||||
c.downloads.location.prompt = True
|
c.downloads.location.prompt = True
|
||||||
|
|
||||||
# Remember the last used download directory.
|
|
||||||
c.downloads.location.remember = True
|
c.downloads.location.remember = True
|
||||||
|
|
||||||
# What to display in the download filename input.
|
|
||||||
# Valid values:
|
|
||||||
# - path: Show only the download path.
|
|
||||||
# - filename: Show only download filename.
|
|
||||||
# - both: Show download path and filename.
|
|
||||||
c.downloads.location.suggestion = 'path'
|
c.downloads.location.suggestion = 'path'
|
||||||
|
|
||||||
# Where to show the downloaded files.
|
|
||||||
c.downloads.position = 'bottom'
|
c.downloads.position = 'bottom'
|
||||||
|
|
||||||
# Duration (in milliseconds) to wait before removing finished downloads
|
|
||||||
c.downloads.remove_finished = 10000
|
c.downloads.remove_finished = 10000
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Fonts
|
* Fonts
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# Default monospace fonts
|
c.fonts.default_family = ["Hack Nerd Font Mono", "DejaVu Sans Mono", "Monaco"]
|
||||||
c.fonts.monospace = '"Hack Nerd Font Mono" "xos4 Terminus", Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal'
|
c.fonts.prompts = '10pt monospace'
|
||||||
|
c.fonts.statusbar = '10pt monospace'
|
||||||
# Font used for prompts.
|
c.fonts.tabs = '10pt monospace'
|
||||||
c.fonts.prompts = '10pt monospace'
|
|
||||||
|
|
||||||
# Font used in the statusbar.
|
|
||||||
c.fonts.statusbar = '10pt monospace'
|
|
||||||
|
|
||||||
# Font used in the tab bar.
|
|
||||||
c.fonts.tabs = '10pt monospace'
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Hints
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# When a hint can be automatically followed without pressing Enter.
|
|
||||||
# Valid values:
|
|
||||||
# - always: Auto-follow whenever there is only a single hint on a page.
|
|
||||||
# - unique-match: Auto-follow whenever there is a unique non-empty match in either the hint string (word mode) or filter (number mode).
|
|
||||||
# - full-match: Follow the hint when the user typed the whole hint (letter, word or number mode) or the element's text (only in number mode).
|
|
||||||
# - never: The user will always need to press Enter to follow a hint.
|
|
||||||
# c.hints.auto_follow = 'unique-match'
|
|
||||||
|
|
||||||
# Duration (in milliseconds) to ignore normal-mode key bindings after a
|
|
||||||
# successful auto-follow.
|
|
||||||
# c.hints.auto_follow_timeout = 0
|
|
||||||
|
|
||||||
# CSS border value for hints.
|
|
||||||
# c.hints.border = '1px solid #E3BE23'
|
|
||||||
|
|
||||||
# Characters used for hint strings.
|
|
||||||
# c.hints.chars = 'asdfghjkl'
|
|
||||||
|
|
||||||
# Dictionary file to be used by the word hints.
|
|
||||||
# c.hints.dictionary = '/usr/share/dict/words'
|
|
||||||
|
|
||||||
# Which implementation to use to find elements to hint.
|
|
||||||
# Valid values:
|
|
||||||
# - javascript: Better but slower
|
|
||||||
# - python: Slightly worse but faster
|
|
||||||
# c.hints.find_implementation = 'python'
|
|
||||||
|
|
||||||
# Hide unmatched hints in rapid mode.
|
|
||||||
# c.hints.hide_unmatched_rapid_hints = True
|
|
||||||
|
|
||||||
# Minimum number of characters used for hint strings.
|
|
||||||
# c.hints.min_chars = 1
|
|
||||||
|
|
||||||
# Mode to use for hints.
|
|
||||||
# Valid values:
|
|
||||||
# - number: Use numeric hints. (In this mode you can also type letters from the hinted element to filter and reduce the number of elements that are hinted.)
|
|
||||||
# - letter: Use the characters in the `hints.chars` setting.
|
|
||||||
# - word: Use hints words based on the html elements and the extra words.
|
|
||||||
# c.hints.mode = 'letter'
|
|
||||||
|
|
||||||
# Comma-separated list of regular expressions to use for 'next' links.
|
|
||||||
# c.hints.next_regexes = ['\\bnext\\b', '\\bmore\\b', '\\bnewer\\b', '\\b[>→≫]\\b', '\\b(>>|»)\\b', '\\bcontinue\\b']
|
|
||||||
|
|
||||||
# Comma-separated list of regular expressions to use for 'prev' links.
|
|
||||||
# c.hints.prev_regexes = ['\\bprev(ious)?\\b', '\\bback\\b', '\\bolder\\b', '\\b[<←≪]\\b', '\\b(<<|«)\\b']
|
|
||||||
|
|
||||||
# Scatter hint key chains (like Vimium) or not (like dwb). Ignored for
|
|
||||||
# number hints.
|
|
||||||
# c.hints.scatter = True
|
|
||||||
|
|
||||||
# Make characters in hint strings uppercase.
|
|
||||||
# c.hints.uppercase = False
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Input
|
* Input
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# Enter insert mode if an editable element is clicked.
|
|
||||||
c.input.insert_mode.auto_enter = True
|
c.input.insert_mode.auto_enter = True
|
||||||
|
|
||||||
# Leave insert mode if a non-editable element is clicked.
|
|
||||||
c.input.insert_mode.auto_leave = True
|
c.input.insert_mode.auto_leave = True
|
||||||
|
|
||||||
# Automatically enter insert mode if an editable element is focused
|
|
||||||
# after loading the page.
|
|
||||||
c.input.insert_mode.auto_load = False
|
c.input.insert_mode.auto_load = False
|
||||||
|
c.input.insert_mode.plugins = True
|
||||||
# Switch to insert mode when clicking flash and other plugins.
|
|
||||||
# c.input.insert_mode.plugins = False
|
|
||||||
|
|
||||||
# Include hyperlinks in the keyboard focus chain when tabbing.
|
|
||||||
# c.input.links_included_in_focus_chain = True
|
|
||||||
|
|
||||||
# Timeout (in milliseconds) for partially typed key bindings. If the
|
|
||||||
# current input forms only partial matches, the keystring will be
|
|
||||||
# cleared after this time.
|
|
||||||
# c.input.partial_timeout = 5000
|
|
||||||
|
|
||||||
# Enable Opera-like mouse rocker gestures. This disables the context
|
|
||||||
# menu.
|
|
||||||
# c.input.rocker_gestures = False
|
|
||||||
|
|
||||||
# Enable spatial navigation. Spatial navigation consists in the ability
|
|
||||||
# to navigate between focusable elements in a Web page, such as
|
|
||||||
# hyperlinks and form controls, by using Left, Right, Up and Down arrow
|
|
||||||
# keys. For example, if the user presses the Right key, heuristics
|
|
||||||
# determine whether there is an element he might be trying to reach
|
|
||||||
# towards the right and which element he probably wants.
|
|
||||||
# c.input.spatial_navigation = False
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Keyhint
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# Keychains that shouldn't be shown in the keyhint dialog. Globs are
|
|
||||||
# supported, so `;*` will blacklist all keychains starting with `;`. Use
|
|
||||||
# `*` to disable keyhints.
|
|
||||||
# c.keyhint.blacklist = []
|
|
||||||
|
|
||||||
# Time (in milliseconds) from pressing a key to seeing the keyhint
|
|
||||||
# dialog.
|
|
||||||
# c.keyhint.delay = 500
|
|
||||||
|
|
||||||
# Rounding radius (in pixels) for the edges of the keyhint dialog.
|
|
||||||
# c.keyhint.radius = 6
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Messages
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# Duration (in milliseconds) to show messages in the statusbar for. Set
|
|
||||||
# to 0 to never clear messages.
|
|
||||||
# c.messages.timeout = 2000
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* New Instance Options
|
* New Instance Options
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# How to open links in an existing instance if a new one is launched.
|
c.new_instance_open_target = 'tab'
|
||||||
# This happens when e.g. opening a link from a terminal. See
|
c.new_instance_open_target_window = 'last-focused'
|
||||||
# `new_instance_open_target_window` to customize in which window the
|
|
||||||
# link is opened in.
|
|
||||||
# Valid values:
|
|
||||||
# - tab: Open a new tab in the existing window and activate the window.
|
|
||||||
# - tab-bg: Open a new background tab in the existing window and activate the window.
|
|
||||||
# - tab-silent: Open a new tab in the existing window without activating the window.
|
|
||||||
# - tab-bg-silent: Open a new background tab in the existing window without activating the window.
|
|
||||||
# - window: Open in a new window.
|
|
||||||
# c.new_instance_open_target = 'tab'
|
|
||||||
|
|
||||||
# Which window to choose when opening links as new tabs. When
|
|
||||||
# `new_instance_open_target` is not set to `window`, this is ignored.
|
|
||||||
# Valid values:
|
|
||||||
# - first-opened: Open new tabs in the first (oldest) opened window.
|
|
||||||
# - last-opened: Open new tabs in the last (newest) opened window.
|
|
||||||
# - last-focused: Open new tabs in the most recently focused window.
|
|
||||||
# - last-visible: Open new tabs in the most recently visible window.
|
|
||||||
# c.new_instance_open_target_window = 'last-focused'
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Prompt
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# Show a filebrowser in upload/download prompts.
|
|
||||||
# c.prompt.filebrowser = True
|
|
||||||
|
|
||||||
# Rounding radius (in pixels) for the edges of prompts.
|
|
||||||
# c.prompt.radius = 8
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Qt
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# Additional arguments to pass to Qt, without leading `--`. With
|
|
||||||
# QtWebEngine, some Chromium arguments (see
|
|
||||||
# https://peter.sh/experiments/chromium-command-line-switches/ for a
|
|
||||||
# list) will work.
|
|
||||||
# c.qt.args = []
|
|
||||||
|
|
||||||
# Force a Qt platform to use. This sets the `QT_QPA_PLATFORM`
|
|
||||||
# environment variable and is useful to force using the XCB plugin when
|
|
||||||
# running QtWebEngine on Wayland.
|
|
||||||
# c.qt.force_platform = None
|
|
||||||
|
|
||||||
# Force software rendering for QtWebEngine. This is needed for
|
|
||||||
# QtWebEngine to work with Nouveau drivers and can be useful in other
|
|
||||||
# scenarios related to graphic issues.
|
|
||||||
# Valid values:
|
|
||||||
# - software-opengl: Tell LibGL to use a software implementation of GL (`LIBGL_ALWAYS_SOFTWARE` / `QT_XCB_FORCE_SOFTWARE_OPENGL`)
|
|
||||||
# - qt-quick: Tell Qt Quick to use a software renderer instead of OpenGL. (`QT_QUICK_BACKEND=software`)
|
|
||||||
# - chromium: Tell Chromium to disable GPU support and use Skia software rendering instead. (`--disable-gpu`)
|
|
||||||
# - none: Don't force software rendering.
|
|
||||||
# c.qt.force_software_rendering = 'none'
|
|
||||||
|
|
||||||
# Turn on Qt HighDPI scaling. This is equivalent to setting
|
|
||||||
# QT_AUTO_SCREEN_SCALE_FACTOR=1 in the environment. It's off by default
|
|
||||||
# as it can cause issues with some bitmap fonts. As an alternative to
|
|
||||||
# this, it's possible to set font sizes and the `zoom.default` setting.
|
|
||||||
# c.qt.highdpi = False
|
|
||||||
|
|
||||||
# When to use Chromium's low-end device mode. This improves the RAM
|
|
||||||
# usage of renderer processes, at the expense of performance.
|
|
||||||
# Valid values:
|
|
||||||
# - always: Always use low-end device mode.
|
|
||||||
# - auto: Decide automatically (uses low-end mode with < 1 GB available RAM).
|
|
||||||
# - never: Never use low-end device mode.
|
|
||||||
# c.qt.low_end_device_mode = 'auto'
|
|
||||||
|
|
||||||
# Which Chromium process model to use. Alternative process models use
|
|
||||||
# less resources, but decrease security and robustness. See the
|
|
||||||
# following pages for more details: -
|
|
||||||
# https://www.chromium.org/developers/design-documents/process-models
|
|
||||||
# - https://doc.qt.io/qt-5/qtwebengine-features.html#process-models
|
|
||||||
# Valid values:
|
|
||||||
# - process-per-site-instance: Pages from separate sites are put into separate processes and separate visits to the same site are also isolated.
|
|
||||||
# - process-per-site: Pages from separate sites are put into separate processes. Unlike Process per Site Instance, all visits to the same site will share an OS process. The benefit of this model is reduced memory consumption, because more web pages will share processes. The drawbacks include reduced security, robustness, and responsiveness.
|
|
||||||
# - single-process: Run all tabs in a single process. This should be used for debugging purposes only, and it disables `:open --private`.
|
|
||||||
# c.qt.process_model = 'process-per-site-instance'
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Scrolling
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# When to show the scrollbar.
|
|
||||||
# Valid values:
|
|
||||||
# - always: Always show the scrollbar.
|
|
||||||
# - never: Never show the scrollbar.
|
|
||||||
# - when-searching: Show the scrollbar when searching for text in the webpage. With the QtWebKit backend, this is equal to `never`.
|
|
||||||
# c.scrolling.bar = 'when-searching'
|
|
||||||
|
|
||||||
# Enable smooth scrolling for web pages. Note smooth scrolling does not
|
|
||||||
# work with the `:scroll-px` command.
|
|
||||||
# c.scrolling.smooth = False
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Search
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# When to find text on a page case-insensitively.
|
|
||||||
# Valid values:
|
|
||||||
# - always: Search case-insensitively.
|
|
||||||
# - never: Search case-sensitively.
|
|
||||||
# - smart: Search case-sensitively if there are capital characters.
|
|
||||||
# c.search.ignore_case = 'smart'
|
|
||||||
|
|
||||||
# Find text on a page incrementally, renewing the search for each typed
|
|
||||||
# character.
|
|
||||||
# c.search.incremental = True
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Session
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# Name of the session to save by default. If this is set to null, the
|
|
||||||
# session which was last loaded is saved.
|
|
||||||
# c.session.default_name = None
|
|
||||||
|
|
||||||
# Load a restored tab as soon as it takes focus.
|
|
||||||
# c.session.lazy_restore = False
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Spell Check
|
* Spell Check
|
||||||
Languages to use for spell checking. You can check for available
|
|
||||||
languages and install dictionaries using scripts/dictcli.py. Run the
|
|
||||||
script with -h/--help for instructions.
|
|
||||||
Valid values:
|
|
||||||
- af-ZA: Afrikaans (South Africa)
|
|
||||||
- bg-BG: Bulgarian (Bulgaria)
|
|
||||||
- ca-ES: Catalan (Spain)
|
|
||||||
- cs-CZ: Czech (Czech Republic)
|
|
||||||
- da-DK: Danish (Denmark)
|
|
||||||
- de-DE: German (Germany)
|
|
||||||
- el-GR: Greek (Greece)
|
|
||||||
- en-AU: English (Australia)
|
|
||||||
- en-CA: English (Canada)
|
|
||||||
- en-GB: English (United Kingdom)
|
|
||||||
- en-US: English (United States)
|
|
||||||
- es-ES: Spanish (Spain)
|
|
||||||
- et-EE: Estonian (Estonia)
|
|
||||||
- fa-IR: Farsi (Iran)
|
|
||||||
- fo-FO: Faroese (Faroe Islands)
|
|
||||||
- fr-FR: French (France)
|
|
||||||
- he-IL: Hebrew (Israel)
|
|
||||||
- hi-IN: Hindi (India)
|
|
||||||
- hr-HR: Croatian (Croatia)
|
|
||||||
- hu-HU: Hungarian (Hungary)
|
|
||||||
- id-ID: Indonesian (Indonesia)
|
|
||||||
- it-IT: Italian (Italy)
|
|
||||||
- ko: Korean
|
|
||||||
- lt-LT: Lithuanian (Lithuania)
|
|
||||||
- lv-LV: Latvian (Latvia)
|
|
||||||
- nb-NO: Norwegian (Norway)
|
|
||||||
- nl-NL: Dutch (Netherlands)
|
|
||||||
- pl-PL: Polish (Poland)
|
|
||||||
- pt-BR: Portuguese (Brazil)
|
|
||||||
- pt-PT: Portuguese (Portugal)
|
|
||||||
- ro-RO: Romanian (Romania)
|
|
||||||
- ru-RU: Russian (Russia)
|
|
||||||
- sh: Serbo-Croatian
|
|
||||||
- sk-SK: Slovak (Slovakia)
|
|
||||||
- sl-SI: Slovenian (Slovenia)
|
|
||||||
- sq: Albanian
|
|
||||||
- sr: Serbian
|
|
||||||
- sv-SE: Swedish (Sweden)
|
|
||||||
- ta-IN: Tamil (India)
|
|
||||||
- tg-TG: Tajik (Tajikistan)
|
|
||||||
- tr-TR: Turkish (Turkey)
|
|
||||||
- uk-UA: Ukrainian (Ukraine)
|
|
||||||
- vi-VN: Vietnamese (Viet Nam)
|
|
||||||
|
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
c.spellcheck.languages = ['en-US', 'fr-FR']
|
c.spellcheck.languages = ['en-US', 'fr-FR']
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
@ -416,16 +89,8 @@ Valid values:
|
|||||||
* Status Bar
|
* Status Bar
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# Hide the statusbar unless a message is shown.
|
# Hide the statusbar unless a message is shown.
|
||||||
# c.statusbar.hide = False
|
c.statusbar.hide = False
|
||||||
|
c.statusbar.position = 'bottom'
|
||||||
# Padding (in pixels) for the statusbar.
|
|
||||||
# c.statusbar.padding = {'top': 1, 'bottom': 1, 'left': 0, 'right': 0}
|
|
||||||
|
|
||||||
# Position of the status bar.
|
|
||||||
# Valid values:
|
|
||||||
# - top
|
|
||||||
# - bottom
|
|
||||||
# c.statusbar.position = 'bottom'
|
|
||||||
|
|
||||||
# List of widgets displayed in the statusbar.
|
# List of widgets displayed in the statusbar.
|
||||||
# Valid values:
|
# Valid values:
|
||||||
@ -436,7 +101,7 @@ Valid values:
|
|||||||
# - tabs: Current active tab, e.g. `2`.
|
# - tabs: Current active tab, e.g. `2`.
|
||||||
# - keypress: Display pressed keys when composing a vi command.
|
# - keypress: Display pressed keys when composing a vi command.
|
||||||
# - progress: Progress bar for the current page loading.
|
# - progress: Progress bar for the current page loading.
|
||||||
# c.statusbar.widgets = ['keypress', 'url', 'scroll', 'history', 'tabs', 'progress']
|
c.statusbar.widgets = ['keypress', 'url', 'scroll', 'history', 'progress']
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Tabs
|
* Tabs
|
||||||
@ -447,33 +112,9 @@ c.tabs.background = True
|
|||||||
# Mouse button with which to close tabs.
|
# Mouse button with which to close tabs.
|
||||||
c.tabs.close_mouse_button = 'right'
|
c.tabs.close_mouse_button = 'right'
|
||||||
|
|
||||||
# How to behave when the close mouse button is pressed on the tab bar.
|
|
||||||
# Valid values:
|
|
||||||
# - new-tab: Open a new tab.
|
|
||||||
# - close-current: Close the current tab.
|
|
||||||
# - close-last: Close the last tab.
|
|
||||||
# - ignore: Don't do anything.
|
|
||||||
# c.tabs.close_mouse_button_on_bar = 'new-tab'
|
|
||||||
|
|
||||||
# Width (in pixels) of the progress indicator (0 to disable).
|
|
||||||
# c.tabs.indicator.width = 3
|
|
||||||
|
|
||||||
# How to behave when the last tab is closed.
|
# How to behave when the last tab is closed.
|
||||||
# Valid values:
|
|
||||||
# - ignore: Don't do anything.
|
|
||||||
# - blank: Load a blank page.
|
|
||||||
# - startpage: Load the start page.
|
|
||||||
# - default-page: Load the default page.
|
|
||||||
# - close: Close the window.
|
|
||||||
c.tabs.last_close = 'close'
|
c.tabs.last_close = 'close'
|
||||||
|
|
||||||
# When switching tabs, what input mode is applied.
|
|
||||||
# Valid values:
|
|
||||||
# - persist: Retain the current mode.
|
|
||||||
# - restore: Restore previously saved mode.
|
|
||||||
# - normal: Always revert to normal mode.
|
|
||||||
# c.tabs.mode_on_change = 'normal'
|
|
||||||
|
|
||||||
# Switch between tabs using the mouse wheel.
|
# Switch between tabs using the mouse wheel.
|
||||||
c.tabs.mousewheel_switching = False
|
c.tabs.mousewheel_switching = False
|
||||||
|
|
||||||
@ -483,7 +124,7 @@ c.tabs.mousewheel_switching = False
|
|||||||
# - next: After the current tab.
|
# - next: After the current tab.
|
||||||
# - first: At the beginning.
|
# - first: At the beginning.
|
||||||
# - last: At the end.
|
# - last: At the end.
|
||||||
# c.tabs.new_position.related = 'next'
|
c.tabs.new_position.related = 'next'
|
||||||
|
|
||||||
# Position of new tabs which aren't opened from another tab.
|
# Position of new tabs which aren't opened from another tab.
|
||||||
# Valid values:
|
# Valid values:
|
||||||
@ -491,13 +132,7 @@ c.tabs.mousewheel_switching = False
|
|||||||
# - next: After the current tab.
|
# - next: After the current tab.
|
||||||
# - first: At the beginning.
|
# - first: At the beginning.
|
||||||
# - last: At the end.
|
# - last: At the end.
|
||||||
# c.tabs.new_position.unrelated = 'last'
|
c.tabs.new_position.unrelated = 'last'
|
||||||
|
|
||||||
# Padding (in pixels) around text for tabs.
|
|
||||||
# c.tabs.padding = {'top': 0, 'bottom': 0, 'left': 5, 'right': 5}
|
|
||||||
|
|
||||||
# Shrink pinned tabs down to their contents.
|
|
||||||
# c.tabs.pinned.shrink = True
|
|
||||||
|
|
||||||
# Position of the tab bar.
|
# Position of the tab bar.
|
||||||
c.tabs.position = 'left'
|
c.tabs.position = 'left'
|
||||||
@ -505,19 +140,6 @@ c.tabs.position = 'left'
|
|||||||
# Which tab to select when the focused tab is removed.
|
# Which tab to select when the focused tab is removed.
|
||||||
c.tabs.select_on_remove = 'next'
|
c.tabs.select_on_remove = 'next'
|
||||||
|
|
||||||
# Format to use for the tab title. The following placeholders are
|
|
||||||
# defined: * `{perc}`: Percentage as a string like `[10%]`. *
|
|
||||||
# `{perc_raw}`: Raw percentage, e.g. `10`. * `{title}`: Title of the
|
|
||||||
# current web page. * `{title_sep}`: The string ` - ` if a title is set,
|
|
||||||
# empty otherwise. * `{index}`: Index of this tab. * `{id}`: Internal
|
|
||||||
# tab ID of this tab. * `{scroll_pos}`: Page scroll position. *
|
|
||||||
# `{host}`: Host of the current web page. * `{backend}`: Either
|
|
||||||
# ''webkit'' or ''webengine'' * `{private}`: Indicates when private mode
|
|
||||||
# is enabled. * `{current_url}`: URL of the current web page. *
|
|
||||||
# `{protocol}`: Protocol (http/https/...) of the current web page. *
|
|
||||||
# `{audio}`: Indicator for audio/mute status.
|
|
||||||
# c.tabs.title.format = '{audio}{index}: {title}'
|
|
||||||
|
|
||||||
# Width (in pixels or as percentage of the window) of the tab bar if it's vertical.
|
# Width (in pixels or as percentage of the window) of the tab bar if it's vertical.
|
||||||
c.tabs.width = 30
|
c.tabs.width = 30
|
||||||
|
|
||||||
@ -527,31 +149,6 @@ c.tabs.wrap = False
|
|||||||
|
|
||||||
* Urls
|
* Urls
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
# What search to start when something else than a URL is entered.
|
|
||||||
# Valid values:
|
|
||||||
# - naive: Use simple/naive check.
|
|
||||||
# - dns: Use DNS requests (might be slow!).
|
|
||||||
# - never: Never search automatically.
|
|
||||||
# c.url.auto_search = 'naive'
|
|
||||||
|
|
||||||
# URL segments where `:navigate increment/decrement` will search for a
|
|
||||||
# number.
|
|
||||||
# Valid values:
|
|
||||||
# - host
|
|
||||||
# - port
|
|
||||||
# - path
|
|
||||||
# - query
|
|
||||||
# - anchor
|
|
||||||
# c.url.incdec_segments = ['path', 'query']
|
|
||||||
|
|
||||||
# Search engines which can be used via the address bar. Maps a search
|
|
||||||
# engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}`
|
|
||||||
# placeholder. The placeholder will be replaced by the search term, use
|
|
||||||
# `{{` and `}}` for literal `{`/`}` signs. The search engine named
|
|
||||||
# `DEFAULT` is used when `url.auto_search` is turned on and something
|
|
||||||
# else than a URL was entered to be opened. Other search engines can be
|
|
||||||
# used by prepending the search engine name to the search term, e.g.
|
|
||||||
# `:open google qutebrowser`.
|
|
||||||
c.url.searchengines = {
|
c.url.searchengines = {
|
||||||
'DEFAULT': 'https://www.duckduckgo.org/?q={}',
|
'DEFAULT': 'https://www.duckduckgo.org/?q={}',
|
||||||
'aw': 'https://wiki.archlinux.org/?search={}',
|
'aw': 'https://wiki.archlinux.org/?search={}',
|
||||||
@ -569,21 +166,9 @@ c.url.searchengines = {
|
|||||||
'md': 'https://fr.mathworks.com/help/search.html?qdoc={}&submitsearch=',
|
'md': 'https://fr.mathworks.com/help/search.html?qdoc={}&submitsearch=',
|
||||||
}
|
}
|
||||||
|
|
||||||
# Page(s) to open at the start.
|
|
||||||
c.url.start_pages = ['https://start.duckduckgo.com']
|
c.url.start_pages = ['https://start.duckduckgo.com']
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Window
|
|
||||||
#+BEGIN_SRC conf
|
|
||||||
# Hide the window decoration. This setting requires a restart on
|
|
||||||
# Wayland.
|
|
||||||
# c.window.hide_decoration = False
|
|
||||||
|
|
||||||
# Format to use for the window title. The same placeholders like for
|
|
||||||
# `tabs.title.format` are defined.
|
|
||||||
# c.window.title_format = '{perc}{title}{title_sep}qutebrowser'
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* Bindings
|
* Bindings
|
||||||
** Normal Mode
|
** Normal Mode
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
@ -909,6 +494,11 @@ c.url.start_pages = ['https://start.duckduckgo.com']
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Custom Bindings
|
** Custom Bindings
|
||||||
|
*** Create a Password for the current website
|
||||||
|
#+begin_src conf
|
||||||
|
config.bind(',P', 'spawn --userscript ~/.config/qutebrowser/userscripts/add-passowrd.sh')
|
||||||
|
#+end_src
|
||||||
|
|
||||||
*** Use Pass to fill password and username (configuration is done in =~/.config/qutebrowser/password_fill_rc=).
|
*** Use Pass to fill password and username (configuration is done in =~/.config/qutebrowser/password_fill_rc=).
|
||||||
#+BEGIN_SRC conf
|
#+BEGIN_SRC conf
|
||||||
config.bind(',p', 'spawn --userscript password_fill')
|
config.bind(',p', 'spawn --userscript password_fill')
|
||||||
@ -960,10 +550,29 @@ c.url.start_pages = ['https://start.duckduckgo.com']
|
|||||||
|
|
||||||
*** See price in CamelCamelCamel
|
*** See price in CamelCamelCamel
|
||||||
#+begin_src conf
|
#+begin_src conf
|
||||||
config.bind(',P', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
|
# config.bind(',P', ":open -t https://fr.camelcamelcamel.com/search?sq={url}")
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Userscripts
|
* Userscripts
|
||||||
|
** Create a new password
|
||||||
|
:PROPERTIES:
|
||||||
|
:header-args: :tangle ~/.config/qutebrowser/userscripts/add-passowrd.sh
|
||||||
|
:header-args+: :comments both :mkdirp yes
|
||||||
|
:header-args+: :shebang "#!/usr/bin/env bash"
|
||||||
|
:END:
|
||||||
|
|
||||||
|
#+begin_src bash
|
||||||
|
url=$(echo "$QUTE_URL" | awk -F[/:] '{print $4}' | rofi -p "URL" -dmenu -lines 1)
|
||||||
|
username=$(echo "dehaeze.thomas@gmail.com\nthomas.dehaeze@esrf.fr\ntdehaeze" | rofi -p "Username" -dmenu -lines 5)
|
||||||
|
password=$(rofi -p "Password" -dmenu -password -lines 1)
|
||||||
|
|
||||||
|
echo "$password\nlogin: $username\nurl: $QUTE_URL" > /tmp/add-password.txt
|
||||||
|
|
||||||
|
pass insert --multiline "$url/$username" < /tmp/add-password.txt
|
||||||
|
|
||||||
|
rm /tmp/add-password.txt
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Cast Youtube to Chromecast
|
** Cast Youtube to Chromecast
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/.config/qutebrowser/userscripts/cast.sh
|
:header-args: :tangle ~/.config/qutebrowser/userscripts/cast.sh
|
||||||
@ -1015,6 +624,7 @@ Add the date and time of add to properties.
|
|||||||
file=$( printf "%s\n" "${files[@]}" | "${MENU_COMMAND[@]}" )
|
file=$( printf "%s\n" "${files[@]}" | "${MENU_COMMAND[@]}" )
|
||||||
}
|
}
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Org-Capture
|
** Org-Capture
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/.config/qutebrowser/userscripts/org-capture.sh
|
:header-args: :tangle ~/.config/qutebrowser/userscripts/org-capture.sh
|
||||||
@ -1036,6 +646,7 @@ Add the date and time of add to properties.
|
|||||||
$CAPTURE_SCRIPT --template "pu" --heading "${QUTE_TITLE}" --url "${QUTE_URL}"
|
$CAPTURE_SCRIPT --template "pu" --heading "${QUTE_TITLE}" --url "${QUTE_URL}"
|
||||||
fi
|
fi
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Add Url to Buku using Rofi
|
** Add Url to Buku using Rofi
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:header-args: :tangle ~/.config/qutebrowser/userscripts/buku-rofi.sh
|
:header-args: :tangle ~/.config/qutebrowser/userscripts/buku-rofi.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user