]> git.sur5r.net Git - i3/i3/blob - i3-sensible-terminal
e5bf2718be1c3afa8623f6d3b577a6373bffad7b
[i3/i3] / i3-sensible-terminal
1 #!/bin/sh
2 # This script tries to exec a terminal emulator by trying some known terminal
3 # emulators.
4 #
5 # Distributions/packagers should enhance this script with a
6 # distribution-specific mechanism to find the preferred terminal emulator. On
7 # Debian, there is the x-terminal-emulator symlink for example.
8 # Please don't touch the first line, though:
9 [ -n "$TERMINAL" ] && which $TERMINAL >/dev/null && exec $TERMINAL "$@"
10
11 # Hopefully one of these is installed:
12 which xterm >/dev/null && exec xterm "$@"
13 which urxvt >/dev/null && exec urxvt "$@"
14 which rxvt >/dev/null && exec rxvt "$@"
15 which roxterm >/dev/null && exec roxterm "$@"