aboutsummaryrefslogtreecommitdiff
path: root/scripts/ssh_starter.sh
blob: 13c1d269490881ecee539c430e22b99f8601a6fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

if type rofi &>/dev/null
then
    exec rofi -show ssh
elif type dmenu &>/dev/null
then
    
    exec i3-sensible-terminal -e ssh $(grep Host ~/.ssh/config | cut -f2 -d' ' | dmenu)
else
    exec i3-nagbar -m "please install rofi or dmenu to use the ssh starter" &>/dev/null
fi