dotfiles/.bin/dexec_super
2023-11-01 10:14:00 +01:00

79 lines
1.3 KiB
Bash
Executable File

#!/bin/sh
. $HOME/.bin/_config
KEYS="\
cvs
dalek
git
github
inbox
make-web
mastodon
matrix
openbsd all
openbsd bugs
openbsd ports
openbsd tech
reddit
shell
telegram
telegram-desktop
tweety
vorstand
"
SEL=$(printf "$KEYS" | $DMENU_CMD -p "Next key" -b -l 20)
case "$SEL" in
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"
;;
vorstand)
texec "sftp vorstand@vorstand.uugrn.org"
;;
inbox)
texec "ksh -ic mutt"
;;
reddit)
texec "tuir"
;;
mastodon)
texec "tuta"
;;
*ports)
texec "ksh -ic mutt-openbsd-ports"
;;
*tech)
texec "ksh -ic mutt-openbsd-tech"
;;
*bugs)
texec "ksh -ic mutt-openbsd-bugs"
;;
github)
$BROWSER https://github.com/c0dev0id
;;
git)
$BROWSER https://git.uugrn.org/sdk
;;
make-web)
texec 'ssh home.codevoid.de "cd ~/make-web && make install"'
$BROWSER https://home.codevoid.de
;;
matrix)
texec "gomuks"
;;
telegram)
texec "tg"
;;
telegram-desktop)
telegram-desktop
;;
esac