This repository has been archived on 2024-04-07. You can view files and clone it, but cannot push or open issues or pull requests.
2020-04-22 19:34:34 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-10-16 07:27:00 +02:00
|
|
|
# {%@@ if terminal == "alacritty" @@%} #
|
|
|
|
command -v alacritty > /dev/null &&
|
|
|
|
{
|
2020-12-11 18:16:44 +01:00
|
|
|
test $# -gt 0 &&
|
|
|
|
exec alacritty -e $@ ||
|
2020-10-16 07:27:00 +02:00
|
|
|
exec alacritty
|
|
|
|
} & exit
|
|
|
|
# {%@@ else @@%} #
|
|
|
|
command -v kitty > /dev/null &&
|
2020-12-11 18:16:44 +01:00
|
|
|
exec kitty -- $@ & exit
|
2020-10-16 07:27:00 +02:00
|
|
|
# {%@@ endif @@%} #
|
|
|
|
|
|
|
|
notify-send "Error" "Terminal program missing"
|