dotfiles

Yes, my $HOME has a git repo now :(

git clone git://git.shimmy1996.com/dotfiles.git
commit 7f4e9a6703d6a85831a2a77e90e216e04e41110c
parent fe6f33a9a62139d914558aed9915bc8172dcc3e7
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Tue, 26 Nov 2019 20:32:30 -0500

Add urlscan for url filtering in aerc

Diffstat:
M.README.org | 3++-
M.config/aerc/binds.conf | 4++++
A.config/urlscan/config.json | 139+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
M.gitignore | 2++
4 files changed, 147 insertions(+), 1 deletion(-)
diff --git a/.README.org b/.README.org
@@ -48,11 +48,12 @@ Utilities used in configuration.
 | Get/Set Backlight Level               | =xbacklight=             |
 | Integration with =pass=               | =rofi-pass=              |
 | Key Remapping                         | =xkb=                    |
-| Preview Images in =lf=                | =catimg=                 |
+| Preview Images in =lf= and =aerc=     | =catimg=                 |
 | Replacement for =find=                | =fd=                     |
 | Screen Locker                         | =swaylock=               |
 | Screen Locker (X)                     | =i3lock=                 |
 | Set Desktop Background (X)            | =feh=                    |
+| URL Parser for =aerc=                 | =urlscan=                |
 | Unicode Picker                        | =unipicker=              |
 | Unify Clipboard and Primary Selection | =greenclip=              |
 | Volume Control                        | =alsa-utils=             |
diff --git a/.config/aerc/binds.conf b/.config/aerc/binds.conf
@@ -66,6 +66,10 @@ H = :toggle-headers<Enter>
 J = :next<Enter>
 K = :prev<Enter>
 
+# Follow links using urlview.
+u = :pipe urlscan -c<Enter>
+U = :pipe urlscan<Enter>
+
 [compose]
 # Keybindings used when the embedded terminal is not selected in the compose
 # view
diff --git a/.config/urlscan/config.json b/.config/urlscan/config.json
@@ -0,0 +1,139 @@
+{
+    "palettes": {
+        "default": [
+            [
+                "header",
+                "black",
+                "light gray",
+                "standout"
+            ],
+            [
+                "footer",
+                "black",
+                "brown",
+                "standout"
+            ],
+            [
+                "search",
+                "black",
+                "dark green",
+                "standout"
+            ],
+            [
+                "msgtext",
+                "",
+                ""
+            ],
+            [
+                "msgtext:ellipses",
+                "light gray",
+                "black"
+            ],
+            [
+                "urlref:number:braces",
+                "light gray",
+                "black"
+            ],
+            [
+                "urlref:number",
+                "yellow",
+                "black",
+                "standout"
+            ],
+            [
+                "urlref:url",
+                "white",
+                "black",
+                "standout"
+            ],
+            [
+                "url:sel",
+                "black",
+                "dark blue",
+                "bold"
+            ]
+        ],
+        "bw": [
+            [
+                "header",
+                "black",
+                "light gray",
+                "standout"
+            ],
+            [
+                "footer",
+                "black",
+                "light gray",
+                "standout"
+            ],
+            [
+                "search",
+                "black",
+                "light gray",
+                "standout"
+            ],
+            [
+                "msgtext",
+                "",
+                ""
+            ],
+            [
+                "msgtext:ellipses",
+                "white",
+                "black"
+            ],
+            [
+                "urlref:number:braces",
+                "white",
+                "black"
+            ],
+            [
+                "urlref:number",
+                "white",
+                "black",
+                "standout"
+            ],
+            [
+                "urlref:url",
+                "white",
+                "black",
+                "standout"
+            ],
+            [
+                "url:sel",
+                "black",
+                "light gray",
+                "bold"
+            ]
+        ]
+    },
+    "keys": {
+        "/": "search_key",
+        "0": "digits",
+        "1": "digits",
+        "2": "digits",
+        "3": "digits",
+        "4": "digits",
+        "5": "digits",
+        "6": "digits",
+        "7": "digits",
+        "8": "digits",
+        "9": "digits",
+        "C": "clipboard",
+        "c": "context",
+        "ctrl l": "clear_screen",
+        "f1": "help_menu",
+        "G": "bottom",
+        "g": "top",
+        "j": "down",
+        "k": "up",
+        "P": "clipboard_pri",
+        "l": "link_handler",
+        "p": "palette",
+        "Q": "quit",
+        "q": "quit",
+        "S": "all_shorten",
+        "s": "shorten",
+        "u": "all_escape"
+    }
+}
diff --git a/.gitignore b/.gitignore
@@ -53,6 +53,8 @@
 !.config/systemd/user/emacs.service.d/override.conf
 !.config/tbsm
 !.config/tbsm/tbsm.conf
+!.config/urlscan
+!.config/urlscan/*
 !.config/zathura
 !.config/zathura/*
 !.mozilla