dotfiles-bin/bin/i3-sensible-terminal

12 lines
417 B
Text
Raw Normal View History

2017-07-13 14:24:30 +02:00
#!/bin/sh
#
# This code is released in public domain by Han Boetes <han@mijncomputer.nl>
#
# This script tries to exec a terminal emulator by trying some known terminal
# emulators.
2018-07-31 09:26:53 +02:00
for terminal in $TERMINAL urxvtcd rxvt-unicode urxvt x-terminal-emulator rxvt terminator Eterm aterm xterm gnome-terminal roxterm xfce4-terminal; do
2017-07-13 14:24:30 +02:00
if which $terminal > /dev/null 2>&1; then
exec $terminal "$@"
fi
done