dotfiles/.config/rofi/rofi-ssh.sh

10 lines
288 B
Bash
Raw Normal View History

2024-04-21 18:28:35 +02:00
#!/usr/bin/env bash
servers=(Mallorea Kell Riva Vault Aloria Arendia)
2024-04-21 18:30:13 +02:00
selected=$(for server in "${servers[@]}"; do printf "%s\0icon\x1fterminal\n" "$server"; done | rofi -dmenu -i)
2024-04-21 18:28:35 +02:00
if [ -z "$selected" ]; then
exit 1
fi
alacritty -e zsh -c "source ~/.zshrc && run_waypipe $selected"