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)
selected=$(for server in "${servers[@]}"; do printf "%s\0icon\x1fyubioath\n" "$server"; done | rofi -dmenu -i)
if [ -z "$selected" ]; then
exit 1
fi
alacritty -e zsh -c "source ~/.zshrc && run_waypipe $selected"