summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/qutebrowser/bookmarks/urls8
-rw-r--r--.config/qutebrowser/config.py35
-rw-r--r--.config/qutebrowser/quickmarks8
-rwxr-xr-x.config/qutebrowser/userscripts/myread.py66
4 files changed, 87 insertions, 30 deletions
diff --git a/.config/qutebrowser/bookmarks/urls b/.config/qutebrowser/bookmarks/urls
index 8202c79..77a90ad 100644
--- a/.config/qutebrowser/bookmarks/urls
+++ b/.config/qutebrowser/bookmarks/urls
@@ -84,14 +84,13 @@ https://www.fs.usda.gov/detail/nfsnc/alerts-notices/?cid=stelprd3832543 National
https://www.alltrails.com/trail/us/north-carolina/black-balsam-knob-via-art-loeb-trail Black Balsam Knob via Art Loeb Trail - North Carolina | AllTrails
https://www.summitpost.org/tennent-mountain/154369 Tennent Mountain : Climbing, Hiking & Mountaineering : SummitPost
https://backpackerspantry.com/cart backpackerspantry.com
-https://www.hikewnc.info/trails/shining-rock-wilderness/shining-creek www.hikewnc.info
+https://www.hikewnc.info/trails/shining-rock-wilderness/shining-creek Shining Creek Trail on HikeWNC
https://en.wikipedia.org/wiki/Caravel#/media/File:Portuguese_Caravel.jpg en.wikipedia.org
https://emergencemagazine.org/story/five-practices-for-listening-to-the-language-of-birds/ emergencemagazine.org
https://www.whiteblaze.net/forum/showthread.php/41034-Field-Jacket-Liner-Modification www.whiteblaze.net
https://bearfoottheory.com/backpacking-food-ideas/ bearfoottheory.com
https://www.cleverhiker.com/blog/13-great-backpacking-meal-recipes-amp-food-dehydration-tips www.cleverhiker.com
https://www.linux.com/training-tutorials/vim-tips-folding-fun/ Vim tips: Folding fun - Linux.com
-https://www.hikewnc.info/trails/shining-rock-wilderness/shining-creek Shining Creek Trail on HikeWNC
https://meet.jit.si/?rCounter=5863 Jitsi Meet
https://www.ecosophia.net/the-cosmic-doctrine-the-dawn-of-manifestation/ The Cosmic Doctrine: The Dawn of Manifestation - Ecosophia
https://en.wikipedia.org/wiki/John_B._Curtis John B. Curtis - Wikipedia
@@ -123,10 +122,13 @@ https://www.rvupgradestore.com/RV-Water-Pump-Silencing-Kit-p/86-8349.htm Shurflo
http://www.ultimatecampgrounds.com/index.php/products/full-map US AND CANADA CAMPGROUNDS - FORMAL AND DISPERSED PUBLIC CAMPING LOCATIONS - Website Map
http://www.boondocking.org/poi/search.aspx Boondocking - Search for a free camping location
https://www.freecampgrounds.com/ Free Campgrounds – Advice about free and cheap RV camping
-https://www.ebay.com/itm/57-67-Dodge-Pickup-Truck-Park-Light-Lenses-NEW-Amber-Sweptline-/4615032392 57-67 Dodge Pickup Truck Park Light Lenses-NEW-Amber Sweptline | eBay
https://gitlab.com/jgkamat/jblock# Jay Kamat / jblock · GitLab
https://redpocket.com/international-calling Red Pocket Mobile
https://reviewmeta.com/ ReviewMeta.com - Amazon Review Checker
https://www.theenergyblueprint.com/causes-of-mitochondrial-dysfunction/ The Most Common Causes of Mitochondrial Dysfunction and 9 Tips to Improve Mitochondrial Health
https://amazingribs.com/tested-recipes/vegetables-and-salads/simple-creamy-southern-coleslaw-recipe The Best Basic Creamy Southern Coleslaw Ever
https://amazingribs.com/tested-recipes/spice-rubs-and-pastes/meatheads-memphis-dust-rub-recipe Meathead's World Famous Memphis Dust Rub
+https://www.postandcourier.com/news/a-22-year-old-youtuber-may-have-solved-anne-bonny-pirate-mystery-300-years-after/article_78fc0a2e-2914-11eb-a5f5-03b65f4d281a.html A 22-year-old YouTuber may have solved Anne Bonny pirate mystery 300 years after trial | News | postandcourier.com
+qute://pdfjs/web/viewer.html?filename=tmpvnpe3rt9_m06_5i.pdf&file=&source=https://www.tax.ny.gov/pdf/memos/income/m06_5i.pdf TSB-M-06(5)I:(5/06):New York Tax Treatment of Nonresidents and Part-Year Residents Application of the Convenience of the Employer Test to Telecommuters and Others:tsbm065i - tmpvnpe3rt9_m06_5i.pdf
+qute://pdfjs/web/viewer.html?filename=tmp4d7l6es9_it2104e_fill_in.pdf&file=&source=https://www.tax.ny.gov/pdf/current_forms/it/it2104e_fill_in.pdf Form IT-2104-E Certificate of Exemption from Withholding Year 2021 - tmp4d7l6es9_it2104e_fill_in.pdf
+https://manage.buyvm.net/# Stallion
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py
index 4d53e39..2470922 100644
--- a/.config/qutebrowser/config.py
+++ b/.config/qutebrowser/config.py
@@ -21,7 +21,7 @@ c.tabs.background = True
c.tabs.position = "top"
c.content.autoplay = False
-c.editor.command = ['alacritty', '-e' 'nvim', '{}']
+c.editor.command = ['foot', 'nvim', '{}']
c.url.default_page = "about:blank"
# searches
@@ -31,20 +31,9 @@ c.url.searchengines['g'] = 'http://www.google.com/search?hl=en&source=hp&ie=ISO-
c.url.searchengines['a'] = 'https://wiki.archlinux.org/?search={}'
c.url.searchengines['y'] = 'https://www.youtube.com/results?search_query={}'
c.url.searchengines['ap'] = 'https://www.archlinux.org/packages/?sort=&q={}'
-c.url.searchengines['aw'] = 'https://www.amazon.com/s?k={}'
c.url.searchengines['w'] = 'https://www.google.com/search?q={}+site%3Awired.com'
-c.url.searchengines['e'] = 'https://duckduckgo.com/?q={}+site%3Ahttps%3A%2F%2Fwww.elliotoracle.com%2Fblog%2F&t=fpas&ia=web'
+c.url.searchengines['t'] = 'https://duckduckgo.com/?q={}+site%3Ahttps%3A%2F%2Fwww.elliotoracle.com%2Fblog%2F&t=fpas&ia=web'
-# aliases
-c.aliases['lx'] = 'open -t https://luxagraf.net/'
-c.aliases['st'] = 'open -t https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net'
-c.aliases['co'] = 'open -t https://live.luxagraf.net/admin/django_comments/comment/'
-c.aliases['wm'] = 'open -t https://webmail.luxagraf.net/rainloop/'
-c.aliases['ad'] = 'open -t https://live.luxagraf.net/admin/'
-
-# ====================== Special Format Yanking =========== {{{
-config.bind("<y><o>", "yank inline [{title}]({url})")
-# }}}
# block JS out of the box:
c.content.javascript.enabled = False
@@ -85,20 +74,20 @@ interceptor.register(filter_yt)
# keybinds
+# fix J/K
config.unbind('J', mode='normal')
config.unbind('K', mode='normal')
-config.unbind('<Ctrl+v>')
config.bind('J', 'tab-prev', mode='normal')
config.bind('K', 'tab-next', mode='normal')
-# Userscripts
-# search history/bookmarks in dmenu
-config.bind (',m', 'spawn --userscript dmenu-open ', mode='normal')
-config.bind (',o', 'spawn --userscript dmenu-open ', mode='normal')
-config.bind (',O', 'spawn --userscript dmenu-open --tab', mode='normal')
+# get rid of things I always hit accidentally
+config.unbind('<Ctrl+v>')
+config.unbind('<Ctrl+q>')
+config.unbind('<Ctrl+h>')
+# Userscripts
# call readability on page
-config.bind (',r', 'spawn --userscript readability', mode='normal')
+config.bind (',r', 'spawn --userscript myread.py', mode='normal')
#download current or hinted video
config.bind(';y', 'spawn --userscript youtube-dl')
@@ -115,6 +104,8 @@ config.bind (',F', 'open --tab {primary}')
config.bind (',e', 'open-editor')
+# clear cookies
+config.bind('co', 'spawn bisc', mode='normal')
#config.set("colors.webpage.darkmode.enabled", True)
# save bookmark to luxagraf
@@ -142,12 +133,8 @@ config.set(
"content.host_blocking.whitelist",
[
"duckduckgo.com",
- "github.com",
- "stackoverflow.com",
- "seekingalpha.com",
],
)
-
solarized = {
'base03': '#002b36',
'base02': '#073642',
diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks
index 983c56a..bdc5e82 100644
--- a/.config/qutebrowser/quickmarks
+++ b/.config/qutebrowser/quickmarks
@@ -1,8 +1,9 @@
ad https://live.luxagraf.net/admin/
li https://live.luxagraf.net/
-lux https://luxagraf.net/
-dev http://10.171.188.84:8000/
-stats https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net
+lx https://luxagraf.net/
+dev http://10.97.181.153:8000/
+aw https://awstats.luxagraf.net/cgi-bin/awstats.pl?config=luxagraf.net
+stats https://stats.luxagraf.net/
arch https://www.archlinux.org/news/
wind https://earth.nullschool.net/
weather http://www.ssec.wisc.edu/data/us_comp/large
@@ -11,3 +12,4 @@ trans https://translate.google.com/
salts https://lovelovething.com/cell-salts-easy-homeopathy/
sch https://www.schoolsfirstfcu.org/
sw http://schwab.com/
+wm https://webmail.luxagraf.net/rainloop/
diff --git a/.config/qutebrowser/userscripts/myread.py b/.config/qutebrowser/userscripts/myread.py
new file mode 100755
index 0000000..45b4c66
--- /dev/null
+++ b/.config/qutebrowser/userscripts/myread.py
@@ -0,0 +1,66 @@
+#!/usr/bin/env python
+#
+# Executes python-readability on current page and opens the summary as new tab.
+#
+# Depends on the python-readability package, or its fork:
+#
+# - https://github.com/buriy/python-readability
+# - https://github.com/bookieio/breadability
+#
+# Usage:
+# :spawn --userscript readability
+#
+from __future__ import absolute_import
+import codecs, os
+
+tmpfile = os.path.join(
+ os.environ.get('QUTE_DATA_DIR',
+ os.path.expanduser('~/.local/share/qutebrowser')),
+ 'userscripts/readability.html')
+
+if not os.path.exists(os.path.dirname(tmpfile)):
+ os.makedirs(os.path.dirname(tmpfile))
+
+# Styling for dynamic window margin scaling and line height
+HEADER = """
+<!DOCTYPE html>
+<html>
+<head>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title>%s</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
+ <style type="text/css">
+ body {
+ margin: 5px auto;
+ max-width: 750px;
+ line-height: 1.6;
+ padding: 0 10px;
+ font-size: 22px;
+ background: #F4ECD8;
+ }
+ h1, h2, h3 {
+ line-height: 1.2;
+ }
+ </style>
+</head>
+"""
+
+with codecs.open(os.environ['QUTE_HTML'], 'r', 'utf-8') as source:
+ data = source.read()
+
+ try:
+ from breadability.readable import Article as reader
+ doc = reader(data)
+ title = doc._original_document.title
+ content = HEADER % title + doc.readable + "</html>"
+ except ImportError:
+ from readability import Document
+ doc = Document(data)
+ title = doc.title()
+ content = doc.summary().replace('<html>', HEADER % title)
+
+ with codecs.open(tmpfile, 'w', 'utf-8') as target:
+ target.write(content.lstrip())
+
+ with open(os.environ['QUTE_FIFO'], 'w') as fifo:
+ fifo.write('open -t %s' % tmpfile)