[ssh] add launcher to xdg

This commit is contained in:
Sebastian Schulze 2021-06-09 09:29:09 +02:00
parent c7c7f4a9bc
commit 91b3181eb8
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
1 changed files with 5 additions and 0 deletions

View File

@ -3,6 +3,7 @@
lower=${1,,} lower=${1,,}
echo $lower echo $lower
echo "${lower%%:*}"
case "${lower%%:*}" in case "${lower%%:*}" in
*.slack.*) *.slack.*)
@ -11,6 +12,10 @@ case "${lower%%:*}" in
file) file)
exec nautilus "$1" exec nautilus "$1"
;; ;;
ssh)
host=$(echo $1 | cut -d "/" -f 3)
exec alacritty -e ssh "$host"
;;
*.html|http|https) *.html|http|https)
exec firefox "$1" exec firefox "$1"
;; ;;