dotfiles/.bin/OLD/dexec_super

79 lines
1.3 KiB
Plaintext
Raw Normal View History

2023-03-29 08:14:03 +02:00
#!/bin/sh
. $HOME/.bin/_config
KEYS="\
cvs
dalek
git
github
2023-03-29 08:14:03 +02:00
inbox
make-web
mastodon
2023-03-29 08:14:03 +02:00
matrix
openbsd all
openbsd bugs
2023-03-29 08:14:03 +02:00
openbsd ports
openbsd tech
reddit
2023-04-01 21:49:50 +02:00
shell
2023-03-29 08:14:03 +02:00
telegram
telegram-desktop
tweety
vorstand
2023-03-29 08:14:03 +02:00
"
SEL=$(printf "$KEYS" | $DMENU_CMD -p "Next key" -b -l 20)
2023-03-29 08:14:03 +02:00
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
;;
2023-03-29 08:14:03 +02:00
esac