]> git.sur5r.net Git - i3/i3/blob - i3-sensible-terminal
update i3-sensible-* (Thanks Han)
[i3/i3] / i3-sensible-terminal
1 #!/bin/sh
2 #
3 # This code is released in public domain by Han Boetes <han@mijncomputer.nl>
4 #
5 # This script tries to exec a terminal emulator by trying some known terminal
6 # emulators.
7 #
8 # Distributions/packagers should enhance this script with a
9 # distribution-specific mechanism to find the preferred terminal emulator. On
10 # Debian, there is the x-terminal-emulator symlink for example.
11 for terminal in $TERMINAL urxvt rxvt terminator Eterm aterm xterm gnome-terminal roxterm; do
12     if which $terminal > /dev/null 2>&1; then
13         exec $terminal "$@"
14     fi
15 done