diff --git a/config/qutebrowser/.gitignore b/config/qutebrowser/.gitignore new file mode 100644 index 0000000..1dd7d6d --- /dev/null +++ b/config/qutebrowser/.gitignore @@ -0,0 +1,2 @@ +quickmarks +qsettings diff --git a/config/qutebrowser/keys.conf b/config/qutebrowser/keys.conf new file mode 100644 index 0000000..eb69ac8 --- /dev/null +++ b/config/qutebrowser/keys.conf @@ -0,0 +1,609 @@ +# vim: ft=conf +# +# In this config file, qutebrowser's key bindings are configured. +# The format looks like this: +# +# [keymode] +# +# command +# keychain +# keychain2 +# ... +# +# All blank lines and lines starting with '#' are ignored. +# Inline-comments are not permitted. +# +# keymode is a comma separated list of modes in which the key binding should be +# active. If keymode starts with !, the key binding is active in all modes +# except the listed modes. +# +# For special keys (can't be part of a keychain), enclose them in `<`...`>`. +# For modifiers, you can use either `-` or `+` as delimiters, and these names: +# +# * Control: `Control`, `Ctrl` +# * Meta: `Meta`, `Windows`, `Mod4` +# * Alt: `Alt`, `Mod1` +# * Shift: `Shift` +# +# For simple keys (no `<>`-signs), a capital letter means the key is pressed +# with Shift. For special keys (with `<>`-signs), you need to explicitly add +# `Shift-` to match a key pressed with shift. You can bind multiple commands +# by separating them with `;;`. + +[!normal] + +leave-mode + + + +[normal] +# Keybindings for normal mode. + +search ;; clear-keychain + + +set-cmd-text -s :open + o + +set-cmd-text :open {url} + go + +set-cmd-text -s :open -t + O + +set-cmd-text :open -t {url} + gO + +set-cmd-text -s :open -b + xo + +set-cmd-text :open -b {url} + xO + +set-cmd-text -s :open -w + wo + +set-cmd-text :open -w {url} + wO + +open -t + ga + + +tab-close + d + + +tab-close -o + D + +tab-only + co + +tab-focus + T + +tab-move + gm + +tab-move - + gl + +tab-move + + gr + +tab-next + J + gt + +tab-prev + K + gT + +tab-clone + gC + +reload + r + +reload -f + R + +back + H + + +back -t + th + +back -w + wh + +forward + L + +forward -t + tl + +forward -w + wl + +fullscreen + + +hint + f + +hint all tab + F + +hint all window + wf + +hint all tab-bg + ;b + +hint all hover + ;h + +hint images + ;i + +hint images tab + ;I + +hint images tab-bg + .i + +hint links fill ":open {hint-url}" + ;o + +hint links fill ":open -t {hint-url}" + ;O + +hint links fill ":open -b {hint-url}" + .o + +hint links yank + ;y + +hint links yank-primary + ;Y + +hint --rapid links tab-bg + ;r + +hint --rapid links window + ;R + +hint links download + ;d + +scroll left + h + +scroll down + j + +scroll up + k + +scroll right + l + +undo + u + + +scroll-perc 0 + gg + +scroll-perc + G + +search-next + n + +search-prev + N + +enter-mode insert + i + +yank + yy + +yank -s + yY + +yank -t + yt + +yank -ts + yT + +paste + pp + +paste -s + pP + +paste -t + Pp + +paste -ts + PP + +paste -w + wp + +paste -ws + wP + +quickmark-save + m + +set-cmd-text -s :quickmark-load + b + +set-cmd-text -s :quickmark-load -t + B + +set-cmd-text -s :quickmark-load -w + wb + +save + sf + +set-cmd-text -s :set + ss + +set-cmd-text -s :set -t + sl + +set-cmd-text -s :set keybind + sk + +zoom-out + - + +zoom-in + + + +zoom + = + +navigate prev + [[ + +navigate next + ]] + +navigate prev -t + {{ + +navigate next -t + }} + +navigate up + gu + +navigate up -t + gU + +navigate increment + + +navigate decrement + + +inspector + wi + +download + gd + +download-cancel + ad + +download-remove --all + cd + +view-source + gf + +tab-focus last + + +enter-mode passthrough + + +quit + + +scroll-page 0 1 + + +scroll-page 0 -1 + + +scroll-page 0 0.5 + + +scroll-page 0 -0.5 + + +tab-focus 1 + + +tab-focus 2 + + +tab-focus 3 + + +tab-focus 4 + + +tab-focus 5 + + +tab-focus 6 + + +tab-focus 7 + + +tab-focus 8 + + +tab-focus 9 + + +home + + +stop + + +print + + +open qute:settings + Ss + +spawn --userscript qutemark + M + +set content allow-javascript true + + +set content allow-javascript false + + +hint all tab-fg + ;f + +enter-mode caret + v + +yank -d + yd + +yank -ds + yD + +follow-selected + + + + + + + +follow-selected -t + + + +[insert] +# Keybindings for insert mode. +# Since normal keypresses are passed through, only special keys are +# supported in this mode. +# Useful hidden commands to map in this section: +# * `open-editor`: Open a texteditor with the focused field. + +open-editor + + +[hint] +# Keybindings for hint mode. +# Since normal keypresses are passed through, only special keys are +# supported in this mode. +# Useful hidden commands to map in this section: +# * `follow-hint`: Follow the currently selected hint. + +follow-hint + + +hint --rapid links tab-bg + + +hint links + + +hint all tab-bg + + +[command] +# Keybindings for command mode. +# Since normal keypresses are passed through, only special keys are +# supported in this mode. +# Useful hidden commands to map in this section: +# * `command-history-prev`: Switch to previous command in history. +# * `command-history-next`: Switch to next command in history. +# * `completion-item-prev`: Select previous item in completion. +# * `completion-item-next`: Select next item in completion. +# * `command-accept`: Execute the command currently in the commandline. + +command-history-prev + + +command-history-next + + +completion-item-prev + + + +completion-item-next + + + +command-accept + + + + +[prompt] +# Keybindings for prompts in the status line. +# You can bind normal keys in this mode, but they will be only active +# when a yes/no-prompt is asked. For other prompt modes, you can only +# bind special keys. +# Useful hidden commands to map in this section: +# * `prompt-accept`: Confirm the entered value. +# * `prompt-yes`: Answer yes to a yes/no question. +# * `prompt-no`: Answer no to a yes/no question. + +prompt-accept + + + + +prompt-yes + y + +prompt-no + n + +[command,prompt] + +rl-backward-char + + +rl-forward-char + + +rl-backward-word + + +rl-forward-word + + +rl-beginning-of-line + + +rl-end-of-line + + +rl-unix-line-discard + + +rl-kill-line + + +rl-kill-word + + +rl-unix-word-rubout + + +rl-yank + + +rl-delete-char + + +rl-backward-delete-char + + +[caret] + +toggle-selection + v + + +drop-selection + + +enter-mode normal + c + +move-to-next-line + j + +move-to-prev-line + k + +move-to-next-char + l + +move-to-prev-char + h + +move-to-end-of-word + e + +move-to-next-word + w + +move-to-prev-word + b + +move-to-start-of-next-block + ] + +move-to-start-of-prev-block + [ + +move-to-end-of-next-block + } + +move-to-end-of-prev-block + { + +move-to-start-of-line + 0 + +move-to-end-of-line + $ + +move-to-start-of-document + gg + +move-to-end-of-document + G + +yank-selected -p + Y + +yank-selected + y + + + + + + + +scroll left + H + +scroll down + J + +scroll up + K + +scroll right + L + diff --git a/config/qutebrowser/qutebrowser.conf b/config/qutebrowser/qutebrowser.conf new file mode 100644 index 0000000..5133704 --- /dev/null +++ b/config/qutebrowser/qutebrowser.conf @@ -0,0 +1,1277 @@ +# vim: ft=dosini + +# Configfile for qutebrowser. +# +# This configfile is parsed by python's configparser in extended +# interpolation mode. The format is very INI-like, so there are +# categories like [general] with "key = value"-pairs. +# +# Note that you shouldn't add your own comments, as this file is +# regenerated every time the config is saved. +# +# Interpolation looks like ${value} or ${section:value} and will be +# replaced by the respective value. +# +# Some settings will expand environment variables. Note that, since +# interpolation is run first, you will need to escape the $ char as +# described below. +# +# This is the default config, so if you want to remove anything from +# here (as opposed to change/add), for example a key binding, set it to +# an empty value. +# +# You will need to escape the following values: +# - # at the start of the line (at the first position of the key) (\#) +# - $ in a value ($$) + +[general] +# General/miscellaneous options. +# +# ignore-case (bool): +# Whether to find text on a page case-insensitively. +# true: Search case-insensitively +# false: Search case-sensitively +# smart: Search case-sensitively if there are capital chars +# Default: smart +# +# wrap-search (bool): +# Whether to wrap finding text to the top when arriving at the end. +# Valid values: true, false +# Default: true +# +# startpage (string-list): +# The default page(s) to open at the start, separated by commas. +# Default: https://www.duckduckgo.com +# +# default-page: +# The page to open if :open -t/-b/-w is used without URL. Use +# `about:blank` for a blank page. +# Default: ${startpage} +# +# auto-search: +# Whether to start a search when something else than a URL is +# entered. +# naive: Use simple/naive check. +# dns: Use DNS requests (might be slow!). +# false: Never search automatically. +# Default: naive +# +# auto-save-config (bool): +# Whether to save the config automatically on quit. +# Valid values: true, false +# Default: true +# +# auto-save-interval (int): +# How often (in milliseconds) to auto-save config/cookies/etc. +# Default: 15000 +# +# editor (shell-command): +# The editor (and arguments) to use for the `open-editor` command. +# Use `{}` for the filename. The value gets split like in a shell, +# so you can use `"` or `'` to quote arguments. +# Default: gvim -f "{}" +# +# editor-encoding (encoding): +# Encoding to use for editor. +# Default: utf-8 +# +# private-browsing (bool): +# Do not record visited pages in the history or store web page +# icons. +# Valid values: true, false +# Default: false +# +# developer-extras (bool): +# Enable extra tools for Web developers. +# This needs to be enabled for `:inspector` to work and also adds an +# _Inspect_ entry to the context menu. +# Valid values: true, false +# Default: false +# +# print-element-backgrounds (bool): +# Whether the background color and images are also drawn when the +# page is printed. +# Valid values: true, false +# Default: true +# +# xss-auditing (bool): +# Whether load requests should be monitored for cross-site scripting +# attempts. +# Suspicious scripts will be blocked and reported in the inspector's +# JavaScript console. Enabling this feature might have an impact on +# performance. +# Valid values: true, false +# Default: false +# +# site-specific-quirks (bool): +# Enable workarounds for broken sites. +# Valid values: true, false +# Default: true +# +# default-encoding (string): +# Default encoding to use for websites. +# The encoding must be a string describing an encoding such as +# _utf-8_, _iso-8859-1_, etc. If left empty a default value will be +# used. +# Default: +# +# new-instance-open-target: +# How to open links in an existing instance if a new one is +# launched. +# 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. +# Default: tab +# +# log-javascript-console (bool): +# Whether to log javascript console messages. +# Valid values: true, false +# Default: false +# +# save-session (bool): +# Whether to always save the open pages. +# Valid values: true, false +# Default: false +# +# session-default-name (session): +# The name of the session to save by default, or empty for the last +# loaded session. +# Default: +ignore-case = smart +wrap-search = true +startpage = https://www.duckduckgo.com +default-page = ${startpage} +auto-search = naive +auto-save-config = true +auto-save-interval = 15000 +editor = urxvtc -e vim "{}" +editor-encoding = utf-8 +private-browsing = false +developer-extras = true +print-element-backgrounds = true +xss-auditing = false +site-specific-quirks = true +default-encoding = +new-instance-open-target = tab +log-javascript-console = false +save-session = false +session-default-name = + +[ui] +# General options related to the user interface. +# +# zoom-levels (perc-list): +# The available zoom levels, separated by commas. +# Default: +# 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% +# +# default-zoom (percentage): +# The default zoom level. +# Default: 100% +# +# downloads-position: +# Where to show the downloaded files. +# Valid values: north, south +# Default: north +# +# message-timeout (int): +# Time (in ms) to show messages in the statusbar for. +# Default: 2000 +# +# message-unfocused (bool): +# Whether to show messages in unfocused windows. +# Valid values: true, false +# Default: false +# +# confirm-quit (string-list): +# Whether to confirm quitting the application. +# 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. +# Default: never +# +# display-statusbar-messages (bool): +# Whether to display javascript statusbar messages. +# Valid values: true, false +# Default: false +# +# zoom-text-only (bool): +# Whether the zoom factor on a frame applies only to the text or to +# all content. +# Valid values: true, false +# Default: false +# +# frame-flattening (bool): +# Whether to expand each subframe to its contents. +# This will flatten all the frames to become one scrollable page. +# Valid values: true, false +# Default: false +# +# user-stylesheet (user-stylesheet): +# User stylesheet to use (absolute filename, filename relative to +# the config directory or CSS string). Will expand environment +# variables. +# Default: ::-webkit-scrollbar { width: 0px; height: 0px; } +# +# css-media-type (string): +# Set the CSS media type. +# Default: +# +# smooth-scrolling (bool): +# Whether to enable smooth scrolling for webpages. +# Valid values: true, false +# Default: false +# +# remove-finished-downloads (bool): +# Whether to remove finished downloads automatically. +# Valid values: true, false +# Default: false +# +# hide-statusbar (bool): +# Whether to hide the statusbar unless a message is shown. +# Valid values: true, false +# Default: false +# +# window-title-format (format-string): +# The format to use for the window title. The following placeholders +# are defined: +# * `{perc}`: The percentage as a string like `[10%]`. +# * `{perc_raw}`: The raw percentage, e.g. `10` +# * `{title}`: The title of the current web page +# * `{title_sep}`: The string ` - ` if a title is set, empty +# otherwise. +# * `{id}`: The internal window ID of this window. +# Default: {perc}{title}{title_sep}qutebrowser +# +# hide-mouse-cursor (bool): +# Whether to hide the mouse cursor. +# Valid values: true, false +# Default: false +# +# modal-js-dialog (bool): +# Use standard JavaScript modal dialog for alert() and confirm() +# Valid values: true, false +# Default: false +zoom-levels = 25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,250%,300%,400%,500% +default-zoom = 100% +downloads-position = north +message-timeout = 2000 +message-unfocused = false +confirm-quit = never +display-statusbar-messages = false +zoom-text-only = false +frame-flattening = false +user-stylesheet = ::-webkit-scrollbar { width: 0px; height: 0px; } +css-media-type = +smooth-scrolling = false +remove-finished-downloads = false +hide-statusbar = false +window-title-format = {perc}{title}{title_sep}qutebrowser +hide-mouse-cursor = false +modal-js-dialog = false + +[network] +# Settings related to the network. +# +# do-not-track (bool): +# Value to send in the `DNT` header. +# Valid values: true, false +# Default: true +# +# accept-language (string): +# Value to send in the `accept-language` header. +# Default: en-US,en +# +# user-agent (user-agent): +# User agent to send. Empty to send the default. +# Default: +# +# proxy: +# The proxy to use. +# In addition to the listed values, you can use a `socks://...` or +# `http://...` URL. +# system: Use the system wide proxy. +# none: Don't use any proxy +# Default: system +# +# proxy-dns-requests (bool): +# Whether to send DNS requests over the configured proxy. +# Valid values: true, false +# Default: true +# +# ssl-strict (bool): +# Whether to validate SSL handshakes. +# Valid values: true, false, ask +# Default: ask +# +# dns-prefetch (bool): +# Whether to try to pre-fetch DNS entries to speed up browsing. +# Valid values: true, false +# Default: true +do-not-track = true +accept-language = en-US,en +user-agent = Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:35.0) Gecko/20100101 Firefox/35.0 +proxy = system +proxy-dns-requests = true +ssl-strict = true +dns-prefetch = true + +[completion] +# Options related to completion and command history. +# +# auto-open (bool): +# Automatically open completion when typing. +# Valid values: true, false +# Default: true +# +# download-path-suggestion: +# What to display in the download filename input. +# path: Show only the download path. +# filename: Show only download filename. +# both: Show download path and filename. +# Default: path +# +# timestamp-format (string): +# How to format timestamps (e.g. for history) +# Default: %Y-%m-%d +# +# show (bool): +# Whether to show the autocompletion window. +# Valid values: true, false +# Default: true +# +# height (percentage-or-int): +# The height of the completion, in px or as percentage of the +# window. +# Default: 50% +# +# cmd-history-max-items (int): +# How many commands to save in the command history. +# 0: no history / -1: unlimited +# Default: 100 +# +# web-history-max-items (int): +# How many URLs to show in the web history. +# 0: no history / -1: unlimited +# Default: 1000 +# +# quick-complete (bool): +# Whether to move on to the next part when there's only one possible +# completion left. +# Valid values: true, false +# Default: true +# +# shrink (bool): +# Whether to shrink the completion to be smaller than the configured +# size if there are no scrollbars. +# Valid values: true, false +# Default: false +auto-open = true +download-path-suggestion = path +timestamp-format = %Y-%m-%d +show = true +height = 50% +cmd-history-max-items = 100 +web-history-max-items = 1000 +quick-complete = true +shrink = false + +[input] +# Options related to input modes. +# +# timeout (int): +# Timeout for ambiguous key bindings. +# Default: 500 +# +# partial-timeout (int): +# Timeout for partially typed key bindings. +# Default: 1000 +# +# insert-mode-on-plugins (bool): +# Whether to switch to insert mode when clicking flash and other +# plugins. +# Valid values: true, false +# Default: false +# +# auto-leave-insert-mode (bool): +# Whether to leave insert mode if a non-editable element is clicked. +# Valid values: true, false +# Default: true +# +# auto-insert-mode (bool): +# Whether to automatically enter insert mode if an editable element +# is focused after page load. +# Valid values: true, false +# Default: false +# +# forward-unbound-keys: +# Whether to forward unbound keys to the webview in normal mode. +# all: Forward all unbound keys. +# auto: Forward unbound non-alphanumeric keys. +# none: Don't forward any keys. +# Default: auto +# +# spatial-navigation (bool): +# Enables or disables the Spatial Navigation feature +# 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 a 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. +# Valid values: true, false +# Default: false +# +# links-included-in-focus-chain (bool): +# Whether hyperlinks should be included in the keyboard focus chain. +# Valid values: true, false +# Default: true +# +# rocker-gestures (bool): +# Whether to enable Opera-like mouse rocker gestures. This disables +# the context menu. +# Valid values: true, false +# Default: false +# +# mouse-zoom-divider (int): +# How much to divide the mouse wheel movements to translate them +# into zoom increments. +# Default: 512 +timeout = 500 +partial-timeout = 1000 +insert-mode-on-plugins = false +auto-leave-insert-mode = true +auto-insert-mode = false +forward-unbound-keys = auto +spatial-navigation = false +links-included-in-focus-chain = true +rocker-gestures = false +mouse-zoom-divider = 512 + +[tabs] +# Configuration of the tab bar. +# +# background-tabs (bool): +# Whether to open new tabs (middleclick/ctrl+click) in background. +# Valid values: true, false +# Default: false +# +# select-on-remove: +# Which tab to select when the focused tab is removed. +# left: Select the tab on the left. +# right: Select the tab on the right. +# previous: Select the previously selected tab. +# Default: right +# +# new-tab-position: +# How new tabs are positioned. +# left: On the left of the current tab. +# right: On the right of the current tab. +# first: At the left end. +# last: At the right end. +# Default: right +# +# new-tab-position-explicit: +# How new tabs opened explicitly are positioned. +# left: On the left of the current tab. +# right: On the right of the current tab. +# first: At the left end. +# last: At the right end. +# Default: last +# +# last-close: +# Behavior when the last tab is closed. +# 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. +# Default: ignore +# +# hide-auto (bool): +# Hide the tab bar if only one tab is open. +# Valid values: true, false +# Default: false +# +# hide-always (bool): +# Always hide the tab bar. +# Valid values: true, false +# Default: false +# +# wrap (bool): +# Whether to wrap when changing tabs. +# Valid values: true, false +# Default: true +# +# movable (bool): +# Whether tabs should be movable. +# Valid values: true, false +# Default: true +# +# close-mouse-button: +# On which mouse button to close tabs. +# right: Close tabs on right-click. +# middle: Close tabs on middle-click. +# none: Don't close tabs using the mouse. +# Default: middle +# +# position: +# The position of the tab bar. +# Valid values: north, south, east, west +# Default: north +# +# show-favicons (bool): +# Whether to show favicons in the tab bar. +# Valid values: true, false +# Default: true +# +# width (percentage-or-int): +# The width of the tab bar if it's vertical, in px or as percentage +# of the window. +# Default: 20% +# +# indicator-width (int): +# Width of the progress indicator (0 to disable). +# Default: 3 +# +# indicator-space (int): +# Spacing between tab edge and indicator. +# Default: 3 +# +# tabs-are-windows (bool): +# Whether to open windows instead of tabs. +# Valid values: true, false +# Default: false +# +# title-format (format-string): +# The format to use for the tab title. The following placeholders +# are defined: +# * `{perc}`: The percentage as a string like `[10%]`. +# * `{perc_raw}`: The raw percentage, e.g. `10` +# * `{title}`: The title of the current web page +# * `{title_sep}`: The string ` - ` if a title is set, empty +# otherwise. +# * `{index}`: The index of this tab. +# * `{id}`: The internal tab ID of this tab. +# Default: {index}: {title} +# +# mousewheel-tab-switching (bool): +# Switch between tabs using the mouse wheel. +# Valid values: true, false +# Default: true +background-tabs = true +select-on-remove = right +new-tab-position = right +new-tab-position-explicit = last +last-close = close +hide-auto = false +hide-always = false +wrap = true +movable = true +close-mouse-button = middle +position = north +show-favicons = true +width = 20% +indicator-width = 3 +indicator-space = 3 +tabs-are-windows = false +title-format = {index}: {title} +mousewheel-tab-switching = true + +[storage] +# Settings related to cache and storage. +# +# download-directory (directory): +# The directory to save downloads to. An empty value selects a +# sensible os-specific default. Will expand environment variables. +# Default: +# +# maximum-pages-in-cache (int): +# The maximum number of pages to hold in the global memory page +# cache. +# The Page Cache allows for a nicer user experience when navigating +# forth or back to pages in the forward/back history, by pausing and +# resuming up to _n_ pages. +# For more information about the feature, please refer to: +# http://webkit.org/blog/427/webkit-page-cache-i-the-basics/ +# Default: +# +# object-cache-capacities (bytes-list): +# The capacities for the global memory cache for dead objects such +# as stylesheets or scripts. Syntax: cacheMinDeadCapacity, +# cacheMaxDead, totalCapacity. +# The _cacheMinDeadCapacity_ specifies the minimum number of bytes +# that dead objects should consume when the cache is under pressure. +# _cacheMaxDead_ is the maximum number of bytes that dead objects +# should consume when the cache is *not* under pressure. +# _totalCapacity_ specifies the maximum number of bytes that the +# cache should consume *overall*. +# Default: +# +# offline-storage-default-quota (bytes): +# Default quota for new offline storage databases. +# Default: +# +# offline-web-application-cache-quota (bytes): +# Quota for the offline web application cache. +# Default: +# +# offline-storage-database (bool): +# Whether support for the HTML 5 offline storage feature is enabled. +# Valid values: true, false +# Default: true +# +# offline-web-application-storage (bool): +# Whether support for the HTML 5 web application cache feature is +# enabled. +# An application cache acts like an HTTP cache in some sense. For +# documents that use the application cache via JavaScript, the +# loader engine will first ask the application cache for the +# contents, before hitting the network. +# The feature is described in details at: +# http://dev.w3.org/html5/spec/Overview.html#appcache +# Valid values: true, false +# Default: true +# +# local-storage (bool): +# Whether support for the HTML 5 local storage feature is enabled. +# Valid values: true, false +# Default: true +# +# cache-size (int): +# Size of the HTTP network cache. +# Default: 52428800 +download-directory = /home/felix/Temporary +maximum-pages-in-cache = +object-cache-capacities = +offline-storage-default-quota = +offline-web-application-cache-quota = +offline-storage-database = true +offline-web-application-storage = true +local-storage = true +cache-size = 52428800 + +[content] +# Loaded plugins/scripts and allowed actions. +# +# allow-images (bool): +# Whether images are automatically loaded in web pages. +# Valid values: true, false +# Default: true +# +# allow-javascript (bool): +# Enables or disables the running of JavaScript programs. +# Valid values: true, false +# Default: true +# +# allow-plugins (bool): +# Enables or disables plugins in Web pages. +# Qt plugins with a mimetype such as "application/x-qt-plugin" are +# not affected by this setting. +# Valid values: true, false +# Default: false +# +# webgl (bool): +# Enables or disables WebGL. +# Valid values: true, false +# Default: true +# +# css-regions (bool): +# Enable or disable support for CSS regions. +# Valid values: true, false +# Default: true +# +# hyperlink-auditing (bool): +# Enable or disable hyperlink auditing (). +# Valid values: true, false +# Default: false +# +# geolocation (bool): +# Allow websites to request geolocations. +# Valid values: true, false, ask +# Default: ask +# +# notifications (bool): +# Allow websites to show notifications. +# Valid values: true, false, ask +# Default: ask +# +# javascript-can-open-windows (bool): +# Whether JavaScript programs can open new windows. +# Valid values: true, false +# Default: false +# +# javascript-can-close-windows (bool): +# Whether JavaScript programs can close windows. +# Valid values: true, false +# Default: false +# +# javascript-can-access-clipboard (bool): +# Whether JavaScript programs can read or write to the clipboard. +# Valid values: true, false +# Default: false +# +# ignore-javascript-prompt (bool): +# Whether all javascript prompts should be ignored. +# Valid values: true, false +# Default: false +# +# ignore-javascript-alert (bool): +# Whether all javascript alerts should be ignored. +# Valid values: true, false +# Default: false +# +# local-content-can-access-remote-urls (bool): +# Whether locally loaded documents are allowed to access remote +# urls. +# Valid values: true, false +# Default: false +# +# local-content-can-access-file-urls (bool): +# Whether locally loaded documents are allowed to access other local +# urls. +# Valid values: true, false +# Default: true +# +# cookies-accept: +# Control which cookies to accept. +# all: Accept all cookies. +# no-3rdparty: Accept cookies from the same origin only. +# no-unknown-3rdparty: Accept cookies from the same origin only, +# unless a cookie is already set for the domain. +# never: Don't accept cookies at all. +# Default: no-3rdparty +# +# cookies-store (bool): +# Whether to store cookies. +# Valid values: true, false +# Default: true +# +# host-block-lists (url-list): +# List of URLs of lists which contain hosts to block. +# The file can be in one of the following formats: +# - An '/etc/hosts'-like file +# - One host per line +# - A zip-file of any of the above, with either only one file, or a +# file named 'hosts' (with any extension). +# Default: +# http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext +# +# host-blocking-enabled (bool): +# Whether host blocking is enabled. +# Valid values: true, false +# Default: true +allow-images = true +allow-javascript = true +allow-plugins = false +webgl = true +css-regions = true +hyperlink-auditing = false +geolocation = ask +notifications = ask +javascript-can-open-windows = false +javascript-can-close-windows = false +javascript-can-access-clipboard = false +ignore-javascript-prompt = false +ignore-javascript-alert = false +local-content-can-access-remote-urls = false +local-content-can-access-file-urls = true +cookies-accept = no-3rdparty +cookies-store = true +host-block-lists = http://www.malwaredomainlist.com/hostslist/hosts.txt,http://someonewhocares.org/hosts/hosts,http://winhelp2002.mvps.org/hosts.zip,http://malwaredomains.lehigh.edu/files/justdomains.zip,http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext +host-blocking-enabled = false + +[hints] +# Hinting settings. +# +# border (string): +# CSS border value for hints. +# Default: 1px solid #E3BE23 +# +# opacity (float): +# Opacity for hints. +# Default: 0.7 +# +# mode: +# Mode to use for hints. +# number: Use numeric hints. +# letter: Use the chars in the hints -> chars setting. +# Default: letter +# +# chars (string): +# Chars used for hint strings. +# Default: asdfghjkl +# +# min-chars (int): +# Mininum number of chars used for hint strings. +# Default: 1 +# +# scatter (bool): +# Whether to scatter hint key chains (like Vimium) or not (like +# dwb). +# Valid values: true, false +# Default: true +# +# uppercase (bool): +# Make chars in hint strings uppercase. +# Valid values: true, false +# Default: false +# +# auto-follow (bool): +# Whether to auto-follow a hint if there's only one left. +# Valid values: true, false +# Default: true +# +# next-regexes (regex-list): +# A comma-separated list of regexes to use for 'next' links. +# Default: +# \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b,\bcontinue\b +# +# prev-regexes (regex-list): +# A comma-separated list of regexes to use for 'prev' links. +# Default: \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b +border = 1px solid #E3BE23 +opacity = 0.7 +mode = letter +chars = asdfghjkl +min-chars = 1 +scatter = true +uppercase = false +auto-follow = true +next-regexes = \bnext\b,\bmore\b,\bnewer\b,\b[>→≫]\b,\b(>>|»)\b +prev-regexes = \bprev(ious)?\b,\bback\b,\bolder\b,\b[<←≪]\b,\b(<<|«)\b + +[searchengines] +# Definitions of search engines which can be used via the address bar. +# The searchengine named `DEFAULT` is used when `general -> auto-search` +# is true 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`. The string `{}` will be +# replaced by the search term, use `{{` and `}}` for literal `{`/`}` +# signs. +DEFAULT = https://duckduckgo.com/?q={} + +[aliases] +# Aliases for commands. +# By default, no aliases are defined. Example which adds a new command +# `:qtb` to open qutebrowsers website: +# `qtb = open http://www.qutebrowser.org/` + +[colors] +# Colors used in the UI. +# A value can be in one of the following format: +# * `#RGB`/`#RRGGBB`/`#RRRGGGBBB`/`#RRRRGGGGBBBB` +# * A SVG color name as specified in http://www.w3.org/TR/SVG/types.html#ColorKeywords[the W3C specification]. +# * transparent (no color) +# * `rgb(r, g, b)` / `rgba(r, g, b, a)` (values 0-255 or percentages) +# * `hsv(h, s, v)` / `hsva(h, s, v, a)` (values 0-255, hue 0-359) +# * A gradient as explained in http://doc.qt.io/qt-5/stylesheet-reference.html#list-of-property-types[the Qt documentation] under ``Gradient''. +# A *.system value determines the color system to use for color +# interpolation between similarly-named *.start and *.stop entries, +# regardless of how they are defined in the options. Valid values are +# 'rgb', 'hsv', and 'hsl'. +# The `hints.*` values are a special case as they're real CSS colors, not Qt-CSS colors. There, for a gradient, you need to use `-webkit-gradient`, see https://www.webkit.org/blog/175/introducing-css-gradients/[the WebKit documentation]. +# +# completion.fg (qcolor): +# Text color of the completion widget. +# Default: white +# +# completion.bg (qss-color): +# Background color of the completion widget. +# Default: #333333 +# +# completion.alternate-bg (qss-color): +# Alternating background color of the completion widget. +# Default: #444444 +# +# completion.category.fg (qcolor): +# Foreground color of completion widget category headers. +# Default: white +# +# completion.category.bg (qss-color): +# Background color of the completion widget category headers. +# Default: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, +# stop:1 #505050) +# +# completion.category.border.top (qss-color): +# Top border color of the completion widget category headers. +# Default: black +# +# completion.category.border.bottom (qss-color): +# Bottom border color of the completion widget category headers. +# Default: ${completion.category.border.top} +# +# completion.item.selected.fg (qcolor): +# Foreground color of the selected completion item. +# Default: black +# +# completion.item.selected.bg (qss-color): +# Background color of the selected completion item. +# Default: #e8c000 +# +# completion.item.selected.border.top (qss-color): +# Top border color of the completion widget category headers. +# Default: #bbbb00 +# +# completion.item.selected.border.bottom (qss-color): +# Bottom border color of the selected completion item. +# Default: ${completion.item.selected.border.top} +# +# completion.match.fg (qss-color): +# Foreground color of the matched text in the completion. +# Default: #ff4444 +# +# statusbar.fg (qss-color): +# Foreground color of the statusbar. +# Default: white +# +# statusbar.bg (qss-color): +# Foreground color of the statusbar. +# Default: black +# +# statusbar.fg.error (qss-color): +# Foreground color of the statusbar if there was an error. +# Default: ${statusbar.fg} +# +# statusbar.bg.error (qss-color): +# Background color of the statusbar if there was an error. +# Default: red +# +# statusbar.fg.warning (qss-color): +# Foreground color of the statusbar if there is a warning. +# Default: ${statusbar.fg} +# +# statusbar.bg.warning (qss-color): +# Background color of the statusbar if there is a warning. +# Default: darkorange +# +# statusbar.fg.prompt (qss-color): +# Foreground color of the statusbar if there is a prompt. +# Default: ${statusbar.fg} +# +# statusbar.bg.prompt (qss-color): +# Background color of the statusbar if there is a prompt. +# Default: darkblue +# +# statusbar.fg.insert (qss-color): +# Foreground color of the statusbar in insert mode. +# Default: ${statusbar.fg} +# +# statusbar.bg.insert (qss-color): +# Background color of the statusbar in insert mode. +# Default: darkgreen +# +# statusbar.fg.command (qss-color): +# Foreground color of the statusbar in command mode. +# Default: ${statusbar.fg} +# +# statusbar.bg.command (qss-color): +# Background color of the statusbar in command mode. +# Default: ${statusbar.bg} +# +# statusbar.fg.caret (qss-color): +# Foreground color of the statusbar in caret mode. +# Default: ${statusbar.fg} +# +# statusbar.bg.caret (qss-color): +# Background color of the statusbar in caret mode. +# Default: purple +# +# statusbar.fg.caret-selection (qss-color): +# Foreground color of the statusbar in caret mode with a selection +# Default: ${statusbar.fg} +# +# statusbar.bg.caret-selection (qss-color): +# Background color of the statusbar in caret mode with a selection +# Default: #a12dff +# +# statusbar.progress.bg (qss-color): +# Background color of the progress bar. +# Default: white +# +# statusbar.url.fg (qss-color): +# Default foreground color of the URL in the statusbar. +# Default: ${statusbar.fg} +# +# statusbar.url.fg.success (qss-color): +# Foreground color of the URL in the statusbar on successful load. +# Default: lime +# +# statusbar.url.fg.error (qss-color): +# Foreground color of the URL in the statusbar on error. +# Default: orange +# +# statusbar.url.fg.warn (qss-color): +# Foreground color of the URL in the statusbar when there's a +# warning. +# Default: yellow +# +# statusbar.url.fg.hover (qss-color): +# Foreground color of the URL in the statusbar for hovered links. +# Default: aqua +# +# tabs.fg.odd (qcolor): +# Foreground color of unselected odd tabs. +# Default: white +# +# tabs.bg.odd (qcolor): +# Background color of unselected odd tabs. +# Default: grey +# +# tabs.fg.even (qcolor): +# Foreground color of unselected even tabs. +# Default: white +# +# tabs.bg.even (qcolor): +# Background color of unselected even tabs. +# Default: darkgrey +# +# tabs.fg.selected (qcolor): +# Foreground color of selected tabs. +# Default: white +# +# tabs.bg.selected (qcolor): +# Background color of selected tabs. +# Default: black +# +# tabs.bg.bar (qcolor): +# Background color of the tab bar. +# Default: #555555 +# +# tabs.indicator.start (qcolor): +# Color gradient start for the tab indicator. +# Default: #0000aa +# +# tabs.indicator.stop (qcolor): +# Color gradient end for the tab indicator. +# Default: #00aa00 +# +# tabs.indicator.error (qcolor): +# Color for the tab indicator on errors.. +# Default: #ff0000 +# +# tabs.indicator.system: +# Color gradient interpolation system for the tab indicator. +# rgb: Interpolate in the RGB color system. +# hsv: Interpolate in the HSV color system. +# hsl: Interpolate in the HSL color system. +# Default: rgb +# +# hints.fg (css-color): +# Font color for hints. +# Default: black +# +# hints.bg (css-color): +# Background color for hints. +# Default: -webkit-gradient(linear, left top, left bottom, +# color-stop(0%,#FFF785), color-stop(100%,#FFC542)) +# +# hints.fg.match (css-color): +# Font color for the matched part of hints. +# Default: green +# +# downloads.bg.bar (qss-color): +# Background color for the download bar. +# Default: black +# +# downloads.fg.start (qcolor): +# Color gradient start for download text. +# Default: white +# +# downloads.bg.start (qcolor): +# Color gradient start for download backgrounds. +# Default: #0000aa +# +# downloads.fg.stop (qcolor): +# Color gradient end for download text. +# Default: ${downloads.fg.start} +# +# downloads.bg.stop (qcolor): +# Color gradient stop for download backgrounds. +# Default: #00aa00 +# +# downloads.fg.system: +# Color gradient interpolation system for download text. +# rgb: Interpolate in the RGB color system. +# hsv: Interpolate in the HSV color system. +# hsl: Interpolate in the HSL color system. +# Default: rgb +# +# downloads.bg.system: +# Color gradient interpolation system for download backgrounds. +# rgb: Interpolate in the RGB color system. +# hsv: Interpolate in the HSV color system. +# hsl: Interpolate in the HSL color system. +# Default: rgb +# +# downloads.fg.error (qcolor): +# Foreground color for downloads with errors. +# Default: white +# +# downloads.bg.error (qcolor): +# Background color for downloads with errors. +# Default: red +# +# webpage.bg (qcolor): +# Background color for webpages if unset (or empty to use the +# theme's color) +# Default: white +completion.fg = white +completion.bg = #333333 +completion.alternate-bg = #444444 +completion.category.fg = white +completion.category.bg = qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050) +completion.category.border.top = black +completion.category.border.bottom = ${completion.category.border.top} +completion.item.selected.fg = black +completion.item.selected.bg = #e8c000 +completion.item.selected.border.top = #bbbb00 +completion.item.selected.border.bottom = ${completion.item.selected.border.top} +completion.match.fg = #ff4444 +statusbar.fg = white +statusbar.bg = black +statusbar.fg.error = ${statusbar.fg} +statusbar.bg.error = red +statusbar.fg.warning = ${statusbar.fg} +statusbar.bg.warning = darkorange +statusbar.fg.prompt = ${statusbar.fg} +statusbar.bg.prompt = darkblue +statusbar.fg.insert = ${statusbar.fg} +statusbar.bg.insert = darkgreen +statusbar.fg.command = ${statusbar.fg} +statusbar.bg.command = ${statusbar.bg} +statusbar.fg.caret = ${statusbar.fg} +statusbar.bg.caret = purple +statusbar.fg.caret-selection = ${statusbar.fg} +statusbar.bg.caret-selection = #a12dff +statusbar.progress.bg = white +statusbar.url.fg = ${statusbar.fg} +statusbar.url.fg.success = lime +statusbar.url.fg.error = orange +statusbar.url.fg.warn = yellow +statusbar.url.fg.hover = aqua +tabs.fg.odd = white +tabs.bg.odd = grey +tabs.fg.even = white +tabs.bg.even = darkgrey +tabs.fg.selected = white +tabs.bg.selected = black +tabs.bg.bar = #555555 +tabs.indicator.start = #0000aa +tabs.indicator.stop = #00aa00 +tabs.indicator.error = #ff0000 +tabs.indicator.system = rgb +hints.fg = black +hints.bg = -webkit-gradient(linear, left top, left bottom, color-stop(0%,#FFF785), color-stop(100%,#FFC542)) +hints.fg.match = green +downloads.bg.bar = black +downloads.fg.start = #ffffff +downloads.bg.start = #0000aa +downloads.fg.stop = ${downloads.fg.start} +downloads.bg.stop = #00aa00 +downloads.fg.system = rgb +downloads.bg.system = rgb +downloads.fg.error = white +downloads.bg.error = red +webpage.bg = white + +[fonts] +# Fonts used for the UI, with optional style/weight/size. +# * Style: `normal`/`italic`/`oblique` +# * Weight: `normal`, `bold`, `100`..`900` +# * Size: _number_ `px`/`pt` +# +# _monospace (font): +# Default monospace fonts. +# Default: Terminus, Monospace, "DejaVu Sans Mono", Monaco, +# "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", +# "Courier New", Courier, monospace, Fixed, Consolas, Terminal +# +# completion (font): +# Font used in the completion widget. +# Default: 8pt ${_monospace} +# +# tabbar (font): +# Font used in the tab bar. +# Default: 8pt ${_monospace} +# +# statusbar (font): +# Font used in the statusbar. +# Default: 8pt ${_monospace} +# +# downloads (font): +# Font used for the downloadbar. +# Default: 8pt ${_monospace} +# +# hints (font): +# Font used for the hints. +# Default: bold 12px Monospace +# +# debug-console (font): +# Font used for the debugging console. +# Default: 8pt ${_monospace} +# +# web-family-standard (font): +# Font family for standard fonts. +# Default: +# +# web-family-fixed (font): +# Font family for fixed fonts. +# Default: +# +# web-family-serif (font): +# Font family for serif fonts. +# Default: +# +# web-family-sans-serif (font): +# Font family for sans-serif fonts. +# Default: +# +# web-family-cursive (font): +# Font family for cursive fonts. +# Default: +# +# web-family-fantasy (font): +# Font family for fantasy fonts. +# Default: +# +# web-size-minimum (int): +# The hard minimum font size. +# Default: +# +# web-size-minimum-logical (int): +# The minimum logical font size that is applied when zooming out. +# Default: +# +# web-size-default (int): +# The default font size for regular text. +# Default: +# +# web-size-default-fixed (int): +# The default font size for fixed-pitch text. +# Default: +_monospace = Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Liberation Mono", "Courier New", Courier, monospace, Fixed, Consolas, Terminal +completion = 8pt ${_monospace} +tabbar = 8pt ${_monospace} +statusbar = 8pt ${_monospace} +downloads = 8pt ${_monospace} +hints = bold 12px Monospace +debug-console = 8pt ${_monospace} +web-family-standard = +web-family-fixed = +web-family-serif = +web-family-sans-serif = +web-family-cursive = +web-family-fantasy = +web-size-minimum = +web-size-minimum-logical = +web-size-default = +web-size-default-fixed = diff --git a/local/bin/qutemark b/local/bin/qutemark deleted file mode 100755 index d0bb758..0000000 --- a/local/bin/qutemark +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -qutemarks="/home/felix/.config/qutebrowser/qutemarks" -commands="$(echo -e "add\ndelete\ntabopen\nopen")" - -# Select a command -command="$(dmenu <<<"$commands")" -case "$command" in - "add") - echo "$QUTE_URL $QUTE_TITLE" >> "$qutemarks" - ;; - "delete") - to_remove="$(cat -n "$qutemarks" | sed 's/^ *//' | dmenu)" - if [[ "$to_remove" =~ "[0-9]* .*" ]]; then - sed -i "${to_remove%% *}d" "$qutemarks" - fi - ;; - "tabopen"|"open") - opener="open" - if [ "$command" = "tabopen" ]; then - opener="open -t" - fi - to_open="$(dmenu < "$qutemarks")" - echo "$command ${to_open%% *}" >> "$QUTE_FIFO" - ;; - *) - ;; -esac -