dotfiles/.bin/dexec_super
2023-04-01 21:49:50 +02:00

39 lines
906 B
Bash
Executable File

#!/bin/sh
. $HOME/.bin/_config
KEYS="\
openbsd
tweety
dalek
cvs
inbox
matrix
openbsd ports
openbsd tech
openbsd bugs
openbsd all
vorstand
shell
github
telegram
"
SEL=$(printf "$KEYS" | $DMENU_CMD -p "Next key")
case "$SEL" in
openbsd) texec "ssh -t openbsd.codevoid.de"; ;;
dalek) texec "ssh -t home.codevoid.de 'tmux -u attach || tmux -u'"; ;;
tweety) texec "ssh -t tweety.home.codevoid.de 'tmux -u attach || tmux -u'"; ;;
cvs) texec "ssh -t cvs.openbsd.org"; ;;
shell) texec "ssh -t shell.uugrn.org"; ;;
vorstand) texec "sftp vorstand@vorstand.uugrn.org"; ;;
inbox) texec "ksh -ic mutt"; ;;
*ports) texec "ksh -ic mutt-openbsd-ports"; ;;
*tech) texec "ksh -ic mutt-openbsd-tech"; ;;
*bugs) texec "ksh -ic mutt-openbsd-bugs"; ;;
github) chrome https://github.com; ;;
matrix) texec "gomuks" ; ;;
telegram) texec "tg" ; ;;
esac