commit 4a0dac0593bf5ccf80c72b109a6111ff95f4a38d parent c7b73e729329806abf974ab3cf48e2c87694f832 Author: Sven Möller <sven-moeller@outlook.de> Date: Mon, 13 Dec 2021 22:04:59 +0100 Add link handler script Diffstat:
A | bin/.local/bin/lh | | | 6 | ++++++ |
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/bin/.local/bin/lh b/bin/.local/bin/lh @@ -0,0 +1,6 @@ +#!/bin/sh + +case $1 in +*.png|*.jpg) curl $1 | setsid -f $IMAGE_VIEWER -;; +*) setsid -f $BROWSER $1 ;; +esac