[ssh] add launcher to xdg
This commit is contained in:
parent
c7c7f4a9bc
commit
91b3181eb8
|
@ -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"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue