2014-02-27 18:46:30 +01:00
|
|
|
# Copyright 2014 Florian Bruhin (The Compiler) <mail@qutebrowser.org>
|
|
|
|
#
|
|
|
|
# This file is part of qutebrowser.
|
|
|
|
#
|
|
|
|
# qutebrowser is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
# (at your option) any later version.
|
|
|
|
#
|
|
|
|
# qutebrowser is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with qutebrowser. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2014-04-17 17:44:27 +02:00
|
|
|
"""Configuration data for config.py.
|
|
|
|
|
|
|
|
Module attributes:
|
|
|
|
|
|
|
|
FIRST_COMMENT: The initial comment header to place in the config.
|
|
|
|
SECTION_DESC: A dictionary with descriptions for sections.
|
|
|
|
DATA: The config defaults, an OrderedDict of sections.
|
|
|
|
"""
|
2014-02-27 18:46:30 +01:00
|
|
|
|
|
|
|
from collections import OrderedDict
|
|
|
|
|
2014-04-11 06:28:07 +02:00
|
|
|
from qutebrowser.config.value import SettingValue
|
2014-02-27 18:46:30 +01:00
|
|
|
import qutebrowser.config.conftypes as types
|
|
|
|
import qutebrowser.config.sections as sect
|
|
|
|
|
|
|
|
|
2014-02-27 21:05:51 +01:00
|
|
|
FIRST_COMMENT = """
|
|
|
|
# vim: ft=dosini
|
2014-02-27 21:23:06 +01:00
|
|
|
|
2014-02-27 21:05:51 +01:00
|
|
|
# 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.
|
|
|
|
#
|
|
|
|
# This is the default config, so if you want to remove anything from
|
|
|
|
# here (as opposed to change/add), for example a keybinding, set it to
|
|
|
|
# an empty value.
|
|
|
|
"""
|
2014-02-27 18:46:30 +01:00
|
|
|
|
|
|
|
|
|
|
|
SECTION_DESC = {
|
2014-04-22 08:42:58 +02:00
|
|
|
'general': "General/misc. options",
|
|
|
|
'tabbar': "Configuration of the tab bar.",
|
|
|
|
'webkit': "Webkit settings.",
|
|
|
|
'hints': "Hinting settings.",
|
2014-02-27 18:46:30 +01:00
|
|
|
'searchengines': (
|
2014-04-22 08:42:58 +02:00
|
|
|
"Definitions of search engines which can be used via the address "
|
|
|
|
"bar.\n"
|
|
|
|
"The searchengine named DEFAULT is used when general.auto_search "
|
|
|
|
"is true and something else than an URL was entered to be opened. "
|
|
|
|
"Other search engines can be used via the bang-syntax, e.g. "
|
|
|
|
"\"qutebrowser !google\". The string \"{}\" will be replaced by the "
|
|
|
|
"search term, use \"{{\" and \"}}\" for literal {/} signs."),
|
2014-02-27 18:46:30 +01:00
|
|
|
'keybind': (
|
2014-04-22 08:42:58 +02:00
|
|
|
"Bindings from a key(chain) to a command.\n"
|
2014-04-16 16:36:45 +02:00
|
|
|
"For special keys (can't be part of a keychain), enclose them in "
|
2014-04-22 08:42:58 +02:00
|
|
|
"@-signs. For modifiers, you can use either - or + as delimiters, and "
|
|
|
|
"these names:\n"
|
|
|
|
" Control: Control, Ctrl\n"
|
|
|
|
" Meta: Meta, Windows, Mod4\n"
|
|
|
|
" Alt: Alt, Mod1\n"
|
|
|
|
" Shift: Shift\n"
|
|
|
|
"For simple keys (no @ signs), a capital letter means the key is "
|
|
|
|
"pressed with Shift. For modifier keys (with @ signs), you need "
|
|
|
|
"to explicitely add \"Shift-\" to match a key pressed with shift. "
|
|
|
|
"You can bind multiple commands by separating them with \";;\"."),
|
2014-02-27 18:46:30 +01:00
|
|
|
'aliases': (
|
2014-04-22 08:42:58 +02:00
|
|
|
"Aliases for commands.\n"
|
|
|
|
"By default, no aliases are defined. Example which adds a new command "
|
|
|
|
":qtb to open qutebrowsers website:\n"
|
|
|
|
" qtb = open http://www.qutebrowser.org/"),
|
2014-02-27 18:46:30 +01:00
|
|
|
'colors': (
|
2014-04-22 08:42:58 +02:00
|
|
|
"Colors used in the UI.\n"
|
|
|
|
"A value can be in one of the following format:\n"
|
|
|
|
" - #RGB/#RRGGBB/#RRRGGGBBB/#RRRRGGGGBBBB\n"
|
|
|
|
" - A SVG color name as specified in [1].\n"
|
|
|
|
" - transparent (no color)\n"
|
|
|
|
" - rgb(r, g, b) / rgba(r, g, b, a) (values 0-255 or "
|
|
|
|
"percentages)\n"
|
|
|
|
" - hsv(h, s, v) / hsva(h, s, v, a) (values 0-255, hue 0-359)\n"
|
|
|
|
" - A gradient as explained at [2] under \"Gradient\"\n"
|
|
|
|
" [1] http://www.w3.org/TR/SVG/types.html#ColorKeywords\n"
|
|
|
|
" [2] http://qt-project.org/doc/qt-4.8/stylesheet-reference.html"
|
|
|
|
"#list-of-property-types\n"
|
|
|
|
"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 [3].\n"
|
|
|
|
" [3] https://www.webkit.org/blog/175/introducing-css-gradients/"),
|
2014-02-27 18:46:30 +01:00
|
|
|
'fonts': (
|
2014-04-22 08:42:58 +02:00
|
|
|
"Fonts used for the UI, with optional style/weight/size.\n"
|
|
|
|
" Style: normal/italic/oblique\n"
|
|
|
|
" Weight: normal, bold, 100..900\n"
|
|
|
|
" Size: Number + px/pt\n"
|
|
|
|
"Note: The font for hints is a true CSS font, not a Qt-CSS one, "
|
|
|
|
"because of that, a general \"Monospace\" family is enough and we "
|
|
|
|
"don't use \"${_monospace}\" there."),
|
2014-02-27 18:46:30 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2014-04-17 17:44:27 +02:00
|
|
|
DATA = OrderedDict([
|
2014-04-16 16:32:14 +02:00
|
|
|
('general', sect.KeyValue(
|
|
|
|
('show_completion',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Whether to show the autocompletion window or not."),
|
|
|
|
|
|
|
|
('completion_height',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.PercOrInt(minperc=0, maxperc=100, minint=1),
|
|
|
|
"50%"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"The height of the completion, in px or as percentage of the "
|
|
|
|
"window."),
|
|
|
|
|
|
|
|
('ignorecase',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Whether to do case-insensitive searching."),
|
|
|
|
|
|
|
|
('wrapsearch',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Whether to wrap search to the top when arriving at the end."),
|
|
|
|
|
|
|
|
('startpage',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.List(), "http://www.duckduckgo.com"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"The default page(s) to open at the start, separated with commas."),
|
|
|
|
|
|
|
|
('auto_search',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.AutoSearch(), "naive"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Whether to start a search when something else than an URL is "
|
|
|
|
"entered."),
|
|
|
|
|
|
|
|
('zoomlevels',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.PercList(minval=0),
|
|
|
|
"25%,33%,50%,67%,75%,90%,100%,110%,125%,150%,175%,200%,"
|
|
|
|
"250%,300%,400%,500%"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"The available zoom levels, separated by commas."),
|
|
|
|
|
|
|
|
('defaultzoom',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.ZoomPerc(), "100%"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"The default zoom level."),
|
|
|
|
|
|
|
|
('autosave',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Whether to save the config automatically on quit."),
|
|
|
|
|
|
|
|
('cmd_histlen',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Int(minval=-1), "100"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"How many commands to save in the history. 0: no history / -1: "
|
2014-04-21 19:03:04 +02:00
|
|
|
"unlimited"),
|
|
|
|
|
|
|
|
('background_tabs',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-21 19:03:04 +02:00
|
|
|
"Whether to open new tabs (middleclick/ctrl+click) in background"),
|
2014-04-22 16:45:13 +02:00
|
|
|
|
|
|
|
('cmd_timeout',
|
|
|
|
SettingValue(types.Int(minval=0), "500"),
|
|
|
|
"Timeout for ambiguous keybindings."),
|
2014-04-24 07:41:20 +02:00
|
|
|
|
|
|
|
('insert_mode_on_plugins',
|
|
|
|
SettingValue(types.Bool(), "true"),
|
|
|
|
"Whether to switch to insert mode when clicking flash and other "
|
|
|
|
"plugins."),
|
2014-04-16 16:32:14 +02:00
|
|
|
)),
|
|
|
|
|
|
|
|
('tabbar', sect.KeyValue(
|
|
|
|
('movable',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Whether tabs should be movable."),
|
|
|
|
|
|
|
|
('closebuttons',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Whether tabs should have close-buttons."),
|
|
|
|
|
|
|
|
('scrollbuttons',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Whether there should be scroll buttons if there are too many tabs."),
|
|
|
|
|
|
|
|
('position',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Position(), "north"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"The position of the tab bar."),
|
|
|
|
|
|
|
|
('select_on_remove',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.SelectOnRemove(), "previous"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Which tab to select when the focused tab is removed."),
|
|
|
|
|
|
|
|
('last_close',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.LastClose(), "ignore"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Behaviour when the last tab is closed."),
|
2014-04-22 15:57:38 +02:00
|
|
|
|
|
|
|
('wrap',
|
|
|
|
SettingValue(types.Bool(), "true"),
|
|
|
|
"Whether to wrap when changing tabs."),
|
2014-04-16 16:32:14 +02:00
|
|
|
)),
|
|
|
|
|
|
|
|
('webkit', sect.KeyValue(
|
|
|
|
('auto_load_images',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether images are automatically loaded in web pages."),
|
|
|
|
|
|
|
|
('dns_prefetch_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether QtWebkit will try to pre-fetch DNS entries to "
|
|
|
|
"speed up browsing."),
|
|
|
|
|
|
|
|
('javascript_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Enables or disables the running of JavaScript programs."),
|
|
|
|
|
|
|
|
#('java_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
# SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
# "Enables or disables Java applets. Currently Java applets are "
|
|
|
|
# "not supported"),
|
|
|
|
|
|
|
|
('plugins_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Enables or disables plugins in Web pages"),
|
|
|
|
|
|
|
|
('private_browsing_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Private browsing prevents WebKit from recording visited pages in "
|
|
|
|
"the history and storing web page icons."),
|
|
|
|
|
|
|
|
('javascript_can_open_windows',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether JavaScript programs can open new windows."),
|
|
|
|
|
|
|
|
('javascript_can_close_windows',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether JavaScript programs can close windows."),
|
|
|
|
|
|
|
|
('javascript_can_access_clipboard',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether JavaScript programs can read or write to the "
|
|
|
|
"clipboard."),
|
|
|
|
|
|
|
|
('developer_extras_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Enables extra tools for Web developers (e.g. webinspector)"),
|
|
|
|
|
|
|
|
('spatial_navigation_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Enables or disables the Spatial Navigation feature, which 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."),
|
|
|
|
|
|
|
|
('links_included_in_focus_chain',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether hyperlinks should be included in the keyboard "
|
|
|
|
"focus chain."),
|
|
|
|
|
|
|
|
('zoom_text_only',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether the zoom factor on a frame applies only to the "
|
|
|
|
"text or to all content."),
|
|
|
|
|
|
|
|
('print_element_backgrounds',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether the background color and images are also drawn "
|
|
|
|
"when the page is printed. "),
|
|
|
|
|
|
|
|
('offline_storage_database_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether support for the HTML 5 offline storage feature is "
|
|
|
|
"enabled or not. "),
|
|
|
|
|
|
|
|
('offline_web_application_storage_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether support for the HTML 5 web application cache "
|
|
|
|
"feature is enabled or not. "),
|
|
|
|
|
|
|
|
('local_storage_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether support for the HTML 5 local storage feature is "
|
|
|
|
"enabled or not."),
|
|
|
|
|
|
|
|
('local_content_can_access_remote_urls',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether locally loaded documents are allowed to access "
|
|
|
|
"remote urls."),
|
|
|
|
|
|
|
|
('local_content_can_access_file_urls',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies whether locally loaded documents are allowed to access "
|
|
|
|
"other local urls."),
|
|
|
|
|
|
|
|
('xss_auditing_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Specifies 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."),
|
|
|
|
|
|
|
|
#('accelerated_compositing_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
# SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
# "This feature, when used in conjunction with QGraphicsWebView, "
|
|
|
|
# "accelerates animations of web content. CSS animations of the "
|
|
|
|
# "transform and opacity properties will be rendered by composing the "
|
|
|
|
# "cached content of the animated elements. "),
|
|
|
|
|
|
|
|
#('tiled_backing_store_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
# SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
# "This setting enables the tiled backing store feature for a "
|
|
|
|
# "QGraphicsWebView. With the tiled backing store enabled, the web "
|
|
|
|
# "page contents in and around the current visible area is "
|
|
|
|
# "speculatively cached to bitmap tiles. The tiles are automatically "
|
|
|
|
# "kept in sync with the web page as it changes. Enabling tiling can "
|
|
|
|
# "significantly speed up painting heavy operations like scrolling. "
|
|
|
|
# "Enabling the feature increases memory consuption."),
|
|
|
|
|
|
|
|
('frame_flattening_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "false"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"With this setting each subframe is expanded to its contents. This "
|
|
|
|
"will flatten all the frames to become one scrollable "
|
|
|
|
"page."),
|
|
|
|
|
|
|
|
('site_specific_quirks_enabled',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Bool(), "true"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"This setting enables WebKit's workaround for broken sites."),
|
|
|
|
)),
|
|
|
|
|
2014-04-20 19:24:22 +02:00
|
|
|
('hints', sect.KeyValue(
|
|
|
|
('border',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.String(), "1px solid #E3BE23"),
|
2014-04-20 19:24:22 +02:00
|
|
|
"CSS border value for hints."),
|
2014-04-21 21:05:39 +02:00
|
|
|
|
2014-04-20 19:24:22 +02:00
|
|
|
('opacity',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Float(minval=0.0, maxval=1.0), "0.7"),
|
2014-04-20 19:24:22 +02:00
|
|
|
"Opacity for hints."),
|
2014-04-21 21:05:39 +02:00
|
|
|
|
|
|
|
('chars',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.String(minlen=2), "asdfghjkl"),
|
2014-04-20 23:58:14 +02:00
|
|
|
"Chars used for hint strings."),
|
2014-04-20 19:24:22 +02:00
|
|
|
)),
|
|
|
|
|
2014-04-16 16:32:14 +02:00
|
|
|
('searchengines', sect.ValueList(
|
2014-04-21 21:04:19 +02:00
|
|
|
types.SearchEngineName(), types.SearchEngineUrl(),
|
2014-04-16 16:32:14 +02:00
|
|
|
('DEFAULT', '${duckduckgo}'),
|
|
|
|
('duckduckgo', 'https://duckduckgo.com/?q={}'),
|
|
|
|
('ddg', '${duckduckgo}'),
|
|
|
|
('google', 'https://encrypted.google.com/search?q={}'),
|
|
|
|
('g', '${google}'),
|
|
|
|
('wikipedia', 'http://en.wikipedia.org/w/index.php?'
|
|
|
|
'title=Special:Search&search={}'),
|
|
|
|
('wiki', '${wikipedia}'),
|
|
|
|
)),
|
|
|
|
|
|
|
|
('keybind', sect.ValueList(
|
2014-04-21 21:04:19 +02:00
|
|
|
types.KeyBindingName(), types.KeyBinding(),
|
2014-04-16 16:32:14 +02:00
|
|
|
('o', 'open'),
|
|
|
|
('go', 'opencur'),
|
|
|
|
('O', 'tabopen'),
|
|
|
|
('gO', 'tabopencur'),
|
|
|
|
('ga', 'tabopen about:blank'),
|
|
|
|
('d', 'tabclose'),
|
|
|
|
('J', 'tabnext'),
|
|
|
|
('K', 'tabprev'),
|
|
|
|
('r', 'reload'),
|
|
|
|
('H', 'back'),
|
|
|
|
('L', 'forward'),
|
2014-04-21 16:59:03 +02:00
|
|
|
('f', 'hint'),
|
2014-04-21 19:29:11 +02:00
|
|
|
('F', 'hint all tab'),
|
|
|
|
(';b', 'hint all bgtab'),
|
|
|
|
(';i', 'hint images'),
|
|
|
|
(';I', 'hint images tab'),
|
|
|
|
('.i', 'hint images bgtab'),
|
|
|
|
(';e', 'hint editable'),
|
2014-04-21 23:33:36 +02:00
|
|
|
(';o', 'hint links cmd'),
|
|
|
|
(';O', 'hint links cmd_tab'),
|
|
|
|
('.o', 'hint links cmd_bgtab'),
|
|
|
|
(';y', 'hint links yank'),
|
|
|
|
(';Y', 'hint links yank_primary'),
|
|
|
|
(';r', 'hint links rapid'),
|
2014-04-16 16:32:14 +02:00
|
|
|
('h', 'scroll -50 0'),
|
|
|
|
('j', 'scroll 0 50'),
|
|
|
|
('k', 'scroll 0 -50'),
|
|
|
|
('l', 'scroll 50 0'),
|
|
|
|
('u', 'undo'),
|
|
|
|
('gg', 'scroll_perc_y 0'),
|
|
|
|
('G', 'scroll_perc_y'),
|
|
|
|
('n', 'nextsearch'),
|
|
|
|
('yy', 'yank'),
|
|
|
|
('yY', 'yank sel'),
|
|
|
|
('yt', 'yanktitle'),
|
|
|
|
('yT', 'yanktitle sel'),
|
|
|
|
('pp', 'paste'),
|
|
|
|
('pP', 'paste sel'),
|
|
|
|
('Pp', 'tabpaste'),
|
|
|
|
('PP', 'tabpaste sel'),
|
|
|
|
('-', 'zoomout'),
|
|
|
|
('+', 'zoomin'),
|
|
|
|
('@Ctrl-Q@', 'quit'),
|
|
|
|
('@Ctrl-Shift-T@', 'undo'),
|
|
|
|
('@Ctrl-W@', 'tabclose'),
|
|
|
|
('@Ctrl-T@', 'tabopen about:blank'),
|
|
|
|
('@Ctrl-F@', 'scroll_page 0 1'),
|
|
|
|
('@Ctrl-B@', 'scroll_page 0 -1'),
|
|
|
|
('@Ctrl-D@', 'scroll_page 0 0.5'),
|
|
|
|
('@Ctrl-U@', 'scroll_page 0 -0.5'),
|
2014-04-22 15:48:38 +02:00
|
|
|
('@Backspace@', 'back'),
|
2014-04-16 16:32:14 +02:00
|
|
|
)),
|
|
|
|
|
|
|
|
('aliases', sect.ValueList(
|
2014-04-21 21:04:19 +02:00
|
|
|
types.Command(), types.Command(),
|
2014-04-16 16:32:14 +02:00
|
|
|
)),
|
|
|
|
|
|
|
|
('colors', sect.KeyValue(
|
|
|
|
('completion.fg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "#333333"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Text color of the completion widget."),
|
|
|
|
|
|
|
|
('completion.item.bg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "white"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Background color of completion widget items."),
|
|
|
|
|
|
|
|
('completion.category.bg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "qlineargradient(x1:0, y1:0, x2:0, y2:1, "
|
2014-04-16 16:32:14 +02:00
|
|
|
"stop:0 #e4e4e4, stop:1 #dbdbdb)"),
|
|
|
|
"Background color of the completion widget category headers."),
|
|
|
|
|
|
|
|
('completion.category.border.top',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "#808080"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Top border color of the completion widget category headers."),
|
|
|
|
|
|
|
|
('completion.category.border.bottom',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "#bbbbbb"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Bottom border color of the completion widget category headers."),
|
|
|
|
|
|
|
|
('completion.item.selected.fg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "#333333"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Foreground color of the selected completion item."),
|
|
|
|
|
|
|
|
('completion.item.selected.bg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "#ffec8b"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Background color of the selected completion item."),
|
|
|
|
|
|
|
|
('completion.item.selected.border.top',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "#f2f2c0"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Top border color of the completion widget category headers."),
|
|
|
|
|
|
|
|
('completion.item.selected.border.bottom',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "#ffec8b"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Bottom border color of the selected completion item."),
|
|
|
|
|
|
|
|
('completion.match.fg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "red"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Foreground color of the matched text in the completion."),
|
|
|
|
|
|
|
|
('statusbar.bg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "black"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Foreground color of the statusbar."),
|
|
|
|
|
|
|
|
('statusbar.fg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "white"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Foreground color of the statusbar."),
|
|
|
|
|
|
|
|
('statusbar.bg.error',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "red"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Background color of the statusbar if there was an error."),
|
|
|
|
|
|
|
|
('statusbar.fg.error',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "${statusbar.fg}"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Foreground color of the statusbar if there was an error."),
|
|
|
|
|
|
|
|
('statusbar.progress.bg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "white"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Background color of the progress bar."),
|
|
|
|
|
|
|
|
('statusbar.url.fg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "${statusbar.fg}"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Default foreground color of the URL in the statusbar."),
|
|
|
|
|
|
|
|
('statusbar.url.fg.success',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "lime"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Foreground color of the URL in the statusbar on successful "
|
|
|
|
"load."),
|
|
|
|
|
|
|
|
('statusbar.url.fg.error',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "orange"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Foreground color of the URL in the statusbar on error."),
|
|
|
|
|
|
|
|
('statusbar.url.fg.warn',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "yellow"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Foreground color of the URL in the statusbar when there's a "
|
|
|
|
"warning."),
|
|
|
|
|
|
|
|
('statusbar.url.fg.hover',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "aqua"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Foreground color of the URL in the statusbar for hovered "
|
|
|
|
"links."),
|
|
|
|
|
|
|
|
('tab.fg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "white"),
|
2014-04-22 20:49:16 +02:00
|
|
|
"Foreground color of tabs."),
|
2014-04-16 16:32:14 +02:00
|
|
|
|
|
|
|
('tab.bg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "grey"),
|
2014-04-22 20:49:16 +02:00
|
|
|
"Background color of unselected tabs."),
|
2014-04-16 16:32:14 +02:00
|
|
|
|
|
|
|
('tab.bg.selected',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Color(), "black"),
|
2014-04-22 20:49:16 +02:00
|
|
|
"Background color of selected tabs."),
|
|
|
|
|
|
|
|
('tab.bg.bar',
|
|
|
|
SettingValue(types.Color(), "#555555"),
|
|
|
|
"Background color of the tabbar."),
|
2014-04-16 16:32:14 +02:00
|
|
|
|
|
|
|
('tab.seperator',
|
2014-04-22 20:49:16 +02:00
|
|
|
SettingValue(types.Color(), "#555555"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Color for the tab seperator."),
|
2014-04-20 19:24:22 +02:00
|
|
|
|
|
|
|
('hints.fg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.CssColor(), "black"),
|
2014-04-20 19:24:22 +02:00
|
|
|
"Font color for hints."),
|
|
|
|
|
2014-04-21 15:45:29 +02:00
|
|
|
('hints.fg.match',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.CssColor(), "green"),
|
2014-04-21 15:45:29 +02:00
|
|
|
"Font color for the matched part of hints."),
|
|
|
|
|
2014-04-20 19:24:22 +02:00
|
|
|
('hints.bg',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.CssColor(), "-webkit-gradient(linear, left top, "
|
|
|
|
"left bottom, color-stop(0%,#FFF785), "
|
|
|
|
"color-stop(100%,#FFC542))"),
|
2014-04-20 19:24:22 +02:00
|
|
|
"Background color for hints."),
|
2014-04-16 16:32:14 +02:00
|
|
|
)),
|
|
|
|
|
|
|
|
('fonts', sect.KeyValue(
|
2014-04-22 08:26:46 +02:00
|
|
|
('_monospace',
|
|
|
|
SettingValue(types.Font(), 'Monospace, "DejaVu Sans Mono", Consolas, '
|
|
|
|
'Monaco, "Bitstream Vera Sans Mono", "Andale Mono", '
|
|
|
|
'"Liberation Mono", "Courier New", Courier, monospace, '
|
|
|
|
'Fixed, Terminal'),
|
|
|
|
"Default monospace fonts."),
|
|
|
|
|
2014-04-16 16:32:14 +02:00
|
|
|
('completion',
|
2014-04-22 08:26:46 +02:00
|
|
|
SettingValue(types.Font(), "8pt ${_monospace}"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Font used in the completion widget."),
|
|
|
|
|
|
|
|
('tabbar',
|
2014-04-22 08:26:46 +02:00
|
|
|
SettingValue(types.Font(), "8pt ${_monospace}"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Font used in the tabbar."),
|
|
|
|
|
|
|
|
('statusbar',
|
2014-04-22 08:26:46 +02:00
|
|
|
SettingValue(types.Font(), "8pt ${_monospace}"),
|
2014-04-16 16:32:14 +02:00
|
|
|
"Font used in the statusbar."),
|
|
|
|
|
2014-04-20 19:24:22 +02:00
|
|
|
('hints',
|
2014-04-21 21:04:19 +02:00
|
|
|
SettingValue(types.Font(), "bold 12px Monospace"),
|
2014-04-20 19:24:22 +02:00
|
|
|
"Font used for the hints."),
|
2014-04-16 16:32:14 +02:00
|
|
|
)),
|
|
|
|
])
|