From 1ffe1b38e0a6cf182ce2a34ee38f64001dd412a3 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 16 Jul 2020 14:25:23 +0200 Subject: Update config --- qutebrowser/.config/qutebrowser/config.py | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'qutebrowser/.config') 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("", 'tab-next') +config.bind("", 'tab-prev') +config.bind("", 'tab-close') + # Bindings for insert mode # config.unbind("", mode='insert') config.bind("", 'fake-key ', 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' + -- cgit v1.2.3