From 81bc19fb3952846ef08345617bc120cdc6d31d72 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 18 Mar 2020 15:55:57 +0000 Subject: Change default browser --- qutebrowser/.config/qutebrowser/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qutebrowser/.config') diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index f4acf32..aa447b9 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -50,7 +50,7 @@ config.bind('', 'completion-item-focus next', mode='command') # Search engines c.url.searchengines = { - 'DEFAULT': 'https://startpage.com/do/search?query={}', + 'DEFAULT': 'https://www.ecosia.org/search?q={}', 'amazon': 'https://www.amazon.co.uk/s?k={}', 'aw': 'https://wiki.archlinux.org/index.php?search={}', 'ddg': 'https://duckduckgo.com/?q={}', -- cgit v1.2.3 From 296aab6ad5ce612b2e44b3eafb7454a58850aca4 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Fri, 26 Jun 2020 12:38:14 +0200 Subject: [qutebrowser] Block youtube adds --- qutebrowser/.config/qutebrowser/config.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'qutebrowser/.config') diff --git a/qutebrowser/.config/qutebrowser/config.py b/qutebrowser/.config/qutebrowser/config.py index aa447b9..f1b72c7 100644 --- a/qutebrowser/.config/qutebrowser/config.py +++ b/qutebrowser/.config/qutebrowser/config.py @@ -2,6 +2,19 @@ # qute://help/configuring.html # qute://help/settings.html +from qutebrowser.api import interceptor + + +def filter_yt(info: interceptor.Request): + url = info.request_url + if (url.host() == 'www.youtube.com' + and url.path() == '/get_video_info' + and '&adformat=' in url.query()): + info.block() + + +interceptor.register(filter_yt) + c.content.images = True c.downloads.location.prompt = False c.editor.command = ['urxvt', '-e', 'nvim', '-f', '{}'] -- cgit v1.2.3 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