dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit a4f41a0c4d5b6c5554b015d0a2adeeeb6bf6503b
parent 65a2b70269692eacea3565ff1402bc9afbe963bf
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Sun, 19 Jan 2020 19:26:44 +0100

Add w3m option

Diffstat:
M.local/bin/linkhandler | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler @@ -41,13 +41,15 @@ handle_url() { nohup $TERMINAL sacc "$url" >/dev/null 2>&1 & ;; *) - action="$(printf "open\nopen (tbb)\nxclip\nducksearch\nmap\nbookmark\ndownload\nhtml to pdf\nsci-hub\nscholarref\nmpv\nxdg-open\nyoutube-dl\nyoutube-dl-music\ndefine" | \ + action="$(printf "open\nopen (w3m)\nopen (tbb)\nxclip\nducksearch\nmap\nbookmark\ndownload\nhtml to pdf\nsci-hub\nscholarref\nmpv\nxdg-open\nyoutube-dl\nyoutube-dl-music\ndefine" | \ dmenu -i -p "$(echo "$url" | sed 's/.*:\/\///' | cut -c-80)")";; esac case "$action" in "open") nohup xdg-open "$url" >/dev/null 2>&1 & ;; + "open (w3m)") + nohup $TERMINAL w3m "$url" >/dev/null 2>&1 & ;; "open (tbb)") nohup tor-browser "$url" >/dev/null 2>&1 & ;; "xclip")