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.
dotfiles/dotfiles/scripts/terminal

16 lines
354 B
Plaintext
Raw Normal View History

2020-04-22 19:34:34 +02:00
#!/bin/sh
# {%@@ if terminal == "alacritty" @@%} #
command -v alacritty > /dev/null &&
{
2020-12-11 18:16:44 +01:00
test $# -gt 0 &&
exec alacritty -e $@ ||
exec alacritty
} & exit
# {%@@ else @@%} #
command -v kitty > /dev/null &&
2020-12-11 18:16:44 +01:00
exec kitty -- $@ & exit
# {%@@ endif @@%} #
notify-send "Error" "Terminal program missing"