zora: add slack as xdg-open target
Jes Olson j3s@c3f.net
Tue, 10 Jan 2023 17:32:21 -0800
3 files changed,
18 insertions(+),
3 deletions(-)
M
bin/xdg-open
→
bin/xdg-open
@@ -6,9 +6,6 @@ ;;
*.pdf) exec zathura "$1" ;; - slack) - exec slack "$1" - ;; *) exec /usr/bin/xdg-open "$@" ;;
A
bin/zora/xdg-open
@@ -0,0 +1,15 @@
+#!/bin/sh +case "${1%%:*}" in + http|https) + exec firefox "$1" + ;; + *.pdf) + exec zathura "$1" + ;; + slack) + exec chromium --app=https://digitalocean.slack.com "$1" + ;; + *) + exec /usr/bin/xdg-open "$@" + ;; +esac