]> src.twobees.de Git - dotfiles.git/blob - stow/bin/.bin/sensible-terminal.sh
dc34a1cc8d11172442ed78c16a4fc74bbfd00d07
[dotfiles.git] / stow / bin / .bin / sensible-terminal.sh
1 #!/bin/sh
2 #
3 # copied from /usr/bin/i3-sensible-terminal and modified for my needs
4 #
5 for terminal in urxvt xfce4-terminal lxterminal terminator x-terminal-emulator konsole gnome-terminal urxvt rxvt termit Eterm aterm uxterm xterm roxterm termite terminology st qterminal lilyterm tilix terminix kitty guake tilda alacritty hyper; do
6     if command -v "$terminal" > /dev/null 2>&1; then
7         if command -v "$terminal" > /dev/null 2>&1; then
8             notify-send -t 300 "$0 exec '$terminal'"
9         fi
10         exec "$terminal" "$@"
11     fi
12 done
13
14 i3-nagbar -m "$0 could not find a terminal emulator. Please install one."