small pixel drawing of a pufferfish dotfiles

zora: add slack as xdg-open target
Jes Olson j3s@c3f.net
Tue, 10 Jan 2023 17:32:21 -0800
commit

1b2df48e8b4e58c56234347802fed95b10c8b60f

parent

8d40462952f939b3f1da3d90ef3b7e9202feeacf

3 files changed, 18 insertions(+), 3 deletions(-)

jump to
M bin/xdg-openbin/xdg-open

@@ -6,9 +6,6 @@ ;;

*.pdf) exec zathura "$1" ;; - slack) - exec slack "$1" - ;; *) exec /usr/bin/xdg-open "$@" ;;
A bin/zora/slack

@@ -0,0 +1,3 @@

+#!/bin/sh + +xdg-open slack "$@"
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