19 lines
378 B
Bash
Executable file
19 lines
378 B
Bash
Executable file
#!/bin/sh
|
|
|
|
cmd="$1"
|
|
shift
|
|
|
|
# {%@@ if terminal == "alacritty" @@%} #
|
|
command -v alacritty > /dev/null &&
|
|
{
|
|
test "$#" -gt "0" &&
|
|
exec alacritty -e "$cmd $@" ||
|
|
exec alacritty
|
|
} & exit
|
|
# {%@@ else @@%} #
|
|
command -v kitty > /dev/null &&
|
|
exec kitty $cmd "$@"
|
|
# {%@@ endif @@%} #
|
|
|
|
notify-send "Error" "Terminal program missing"
|