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 b5233b6be1d572be58a1076cf9f3c511334a23ad
parent 6af7882d119730cb1751e40f5aab7e6a93632546
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri,  8 Nov 2019 19:59:09 +0100

Merge branch 'master' of src.adamsgaard.dk:src/dotfiles

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

diff --git a/.local/bin/linkhandler b/.local/bin/linkhandler @@ -11,10 +11,13 @@ handle_url() { action="undefined" case "$1" in *.png|*.PNG|*.jpg|*.JPG|*.jpeg|*.JPEG|*.tif|*.TIF|*.bmp|*.BMP|*.pdf|*.PDF) + notify-send "linkhandler action:\ncurl + xdg-open" action="xdg-open" ;; *youtube.com*|*youtu.be*) + notify-send "linkhandler action:\nyoutube-dl" action="youtube-dl" ;; *smbc-comics.com*|*xkcd.com*|*jspowerhour.com*) + notify-send "linkhandler action:\ncomic" action="comic" ;; *) action="$(printf "open\nopen (tbb)\nxclip\nbookmark\ncurl\nhtml to pdf\nsci-hub\nadd bibref\nmpv\nxdg-open\nyoutube-dl\nyoutube-dl-music" | \