diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index f86e270..03513a5 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -14,6 +14,16 @@ config.load_autoconfig() c.completion.web_history.max_items = 1000 c.hints.uppercase = True +c.content.host_blocking.enabled = True +c.content.host_blocking.lists = [ + "http://www.malwaredomainlist.com/hostslist/hosts.txt", + "http://someonewhocares.org/hosts/hosts", + "http://winhelp2002.mvps.org/hosts.zip", + "http://malwaredomains.lehigh.edu/files/justdomains.zip", + "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext", +] +c.content.host_blocking.whitelist = ['piwik.org'] + c.content.pdfjs = True c.content.javascript.enabled = False js_whitelist = [ @@ -80,9 +90,15 @@ leader = "" # toggles ('cycles') between tabs always showing, or only when switching between them config.bind('tt', 'config-cycle -t tabs.show always switching') +# [M]edia shortcuts - watch, queue, download media + # bind mpv to play the current page/links, using a single instance which queues the next link passed -config.bind('M', 'spawn umpv {url}') -config.bind('m', 'hint links spawn umpv {hint-url}') +config.bind(leader + 'M', 'spawn umpv {url}') +config.bind(leader + 'm', 'hint links spawn umpv {hint-url}') + +# bind youtube-dl to download the current page/links +config.bind(leader + 'dM', 'spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}') +config.bind(leader + 'dm', 'hint --rapid links spawn youtube-dl -o ~/videos/%(title)s.%(ext)s {url}') # Let me close tabs more easily, and 'unclose' them with the same key config.bind('x', 'tab-close', mode='normal')