config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 486ecee48afca376921104cb2f30f4897af7a97d
parent 24146732019a0f60a788745102bbec9ab59cf95f
Author: jacobs-github <JacobDoesLinux@protonmail.com>
Date:   Wed, 19 Feb 2020 22:09:06 -0800

mouse control on tabs disabled.

ctrl+o opens private window

Diffstat:
Mqutebrowser/.config/qutebrowser/autoconfig.yml | 22++++++++++++++++++++++
Mqutebrowser/.config/qutebrowser/config.py | 38++++++++++++++++++++++++++++++++++++++
2 files changed, 60 insertions(+), 0 deletions(-)

diff --git a/qutebrowser/.config/qutebrowser/autoconfig.yml b/qutebrowser/.config/qutebrowser/autoconfig.yml @@ -8,7 +8,29 @@ config_version: 2 settings: auto_save.session: global: true + bindings.commands: + global: + normal: + <Ctrl+j>: scroll-px 0 40 + <Ctrl+k>: scroll-px 0 -40 + <Ctrl+o>: open -p + <F11>: nop + Z: zoom-out + b: spawn -u bookmarks --open + ctrl: o open -p + ctrl+j: scroll-px 0 40 + ctrl+o: open -p + m: spawn -u bookmarks --edit + z: zoom-in content.javascript.enabled: global: true session.lazy_restore: global: true + tabs.close_mouse_button: + global: none + tabs.close_mouse_button_on_bar: + global: ignore + tabs.mousewheel_switching: + global: false + tabs.new_position.unrelated: + global: next diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py @@ -152,6 +152,10 @@ config.set('content.javascript.enabled', True, 'chrome://*/*') # Type: Bool config.set('content.javascript.enabled', True, 'qute://*/*') +# Enable JavaScript. +# Type: Bool +c.content.javascript.enabled = True + # Allow websites to show notifications. # Type: BoolAsk # Valid values: @@ -224,6 +228,23 @@ c.statusbar.padding = {'bottom': 1, 'left': 0, 'right': 0, 'top': 1} # - progress: Progress bar for the current page loading. c.statusbar.widgets = ['keypress', 'url', 'scroll', 'progress'] +# Mouse button with which to close tabs. +# Type: String +# Valid values: +# - right: Close tabs on right-click. +# - middle: Close tabs on middle-click. +# - none: Don't close tabs using the mouse. +c.tabs.close_mouse_button = 'none' + +# How to behave when the close mouse button is pressed on the tab bar. +# Type: String +# 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 = 'ignore' + # Scaling factor for favicons in the tab bar. The tab size is unchanged, # so big favicons also require extra `tabs.padding`. # Type: Float @@ -237,6 +258,20 @@ c.tabs.favicons.scale = 1.1 # - pinned: Show favicons only on pinned tabs. c.tabs.favicons.show = 'pinned' +# Switch between tabs using the mouse wheel. +# Type: Bool +c.tabs.mousewheel_switching = False + +# Position of new tabs which are not opened from another tab. See +# `tabs.new_position.stacking` for controlling stacking behavior. +# Type: NewTabPosition +# Valid values: +# - prev: Before the current tab. +# - next: After the current tab. +# - first: At the beginning. +# - last: At the end. +c.tabs.new_position.unrelated = 'next' + # Padding (in pixels) around text for tabs. # Type: Padding c.tabs.padding = {'bottom': 0, 'left': 5, 'right': 5, 'top': 0} @@ -459,9 +494,12 @@ c.colors.webpage.bg = '#222' # Bindings for normal mode config.bind('<Ctrl+j>', 'scroll-px 0 40') config.bind('<Ctrl+k>', 'scroll-px 0 -40') +config.bind('<Ctrl+o>', 'open -p') config.bind('<F11>', 'nop') config.bind('Z', 'zoom-out') config.bind('b', 'spawn -u bookmarks --open') +config.bind('ctrl', 'o open -p') config.bind('ctrl+j', 'scroll-px 0 40') +config.bind('ctrl+o', 'open -p') config.bind('m', 'spawn -u bookmarks --edit') config.bind('z', 'zoom-in')