summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2020-07-16 14:25:23 +0200
committerUrbain Vaes <urbain@vaes.uk>2020-07-16 14:25:23 +0200
commit4f91c4bdf75e06395a22eb1ea0d3c7a764401264 (patch)
tree2db47a5788b15a2a3ae603a8ebe728b8d2b90526
parent1b0a177be70c9a8bdef2affc4c318c9afdcab9d3 (diff)
Update config
-rw-r--r--qutebrowser/.config/qutebrowser/config.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py
index f1b72c7..e766985 100644
--- a/qutebrowser/.config/qutebrowser/config.py
+++ b/qutebrowser/.config/qutebrowser/config.py
@@ -1,9 +1,13 @@
+# pylint: disable=C0111
# Documentation:
# qute://help/configuring.html
# qute://help/settings.html
from qutebrowser.api import interceptor
+c = c
+config = config
+
def filter_yt(info: interceptor.Request):
url = info.request_url
@@ -15,6 +19,11 @@ def filter_yt(info: interceptor.Request):
interceptor.register(filter_yt)
+
+# Colors
+c.colors.tabs.selected.odd.bg = "#875f5f"
+c.colors.tabs.selected.even.bg = "#875f5f"
+
c.content.images = True
c.downloads.location.prompt = False
c.editor.command = ['urxvt', '-e', 'nvim', '-f', '{}']
@@ -22,7 +31,7 @@ c.fonts.hints = 'bold 12pt monospace'
c.hints.chars = 'aoeuidhtns'
c.hints.uppercase = True
c.tabs.show = 'multiple'
-c.tabs.tabs_are_windows = True
+c.tabs.tabs_are_windows = False
c.url.start_pages = ['file:///home/urbain/personal/index.html']
c.url.default_page = c.url.start_pages[0]
c.completion.open_categories = ['bookmarks', 'history']
@@ -43,6 +52,14 @@ config.bind(",o", 'set-cmd-text -s :spawn --userscript url-from-surfraw')
config.bind(",O", 'set-cmd-text -s :spawn --userscript url-from-surfraw -t')
config.bind("f", 'hint all current')
+config.bind("gh", 'tab-move -')
+config.bind("gl", 'tab-move +')
+# config.bind("gt", 'tab-next')
+# config.bind("gT", 'tab-prev')
+config.bind("<Ctrl-L>", 'tab-next')
+config.bind("<Ctrl-H>", 'tab-prev')
+config.bind("<Ctrl-D>", 'tab-close')
+
# Bindings for insert mode
# config.unbind("<Ctrl-A>", mode='insert')
config.bind("<Ctrl-A>", 'fake-key <Home>', mode='insert')
@@ -87,4 +104,5 @@ c.aliases = {
}
# Style sheet
-c.content.user_stylesheets='/home/urbain/dotfiles/qutebrowser/.config/qutebrowser/style.css'
+c.content.user_stylesheets = '/home/urbain/dotfiles/qutebrowser/.config/qutebrowser/style.css'
+