From cab5d6136c01188b2684fc1773383c0d4a5eb65b Mon Sep 17 00:00:00 2001 From: Phantop Date: Tue, 2 Feb 2021 22:20:48 -0500 Subject: [PATCH] Qute: clean up redirects, hosts, and the rest --- .config/qutebrowser/adapta.py | 10 ++++----- .config/qutebrowser/bindings.py | 6 +++--- .config/qutebrowser/config.py | 10 ++++----- .config/qutebrowser/redirects.py | 37 ++++++++++++++++++-------------- .setup | 2 +- 5 files changed, 35 insertions(+), 30 deletions(-) diff --git a/.config/qutebrowser/adapta.py b/.config/qutebrowser/adapta.py index 60eb1ba..6f8f721 100644 --- a/.config/qutebrowser/adapta.py +++ b/.config/qutebrowser/adapta.py @@ -29,15 +29,15 @@ cct.pinned.selected.odd.bg = accent cct.selected.even.bg = accent cct.selected.odd.bg = accent -cct.selected.even.fg = 'black' -cct.selected.odd.fg = 'black' +cc.messages.warning.fg = 'white' cct.pinned.selected.even.fg = 'black' cct.pinned.selected.odd.fg = 'black' -cc.messages.warning.fg = 'white' +cct.selected.even.fg = 'black' +cct.selected.odd.fg = 'black' +cc.messages.warning.bg = 'red' +cc.messages.warning.border = 'red' ccc.even.bg = '#29353B' ccc.odd.bg = '#243035' c.hints.border = '1px solid #00A5BA' cc.hints.bg = 'rgba(0, 226, 255, 0.8)' -cc.messages.warning.bg = 'red' -cc.messages.warning.border = 'red' diff --git a/.config/qutebrowser/bindings.py b/.config/qutebrowser/bindings.py index 403921e..21c33bd 100644 --- a/.config/qutebrowser/bindings.py +++ b/.config/qutebrowser/bindings.py @@ -11,13 +11,13 @@ bind = { ';M': 'hint links run mpv4 {hint-url}', 's1': 'download-open', - 'sa': 'open https://archive.is/?run=1&url={url}', - 'sc': 'config-cycle -t content.user_stylesheets adapta.css ""', + 'sa': 'open -t archive.is/?run=1&url={url}', + 'sc': 'config-cycle content.user_stylesheets adapta.css ""', 'sd': "spawn fish -c 'dl; open (ls | rofi -dmenu -b -i || exit 0)'", 'sg': 'debug-dump-page ~/Downloads/dump.html', 'sq': 'spawn -u qr', 'sr': 'remove-sticky', - 'st': 'config-cycle -t content.proxy socks://localhost:9050/ system', + 'st': 'config-cycle content.proxy socks://localhost:9050/ system', } for a, b in bind.items(): config.bind(a, b) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index eb22879..28bfc5b 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -33,11 +33,11 @@ c.aliases['mpv4'] = mpv + ' --ytdl-format=bestvideo[vcodec^=avc1]+bestaudio' c.aliases['remove-sticky'] = 'jseval -q !function(){var e,o=document.querySelectorAll("body *");for(e=0;e