blob: 83cf0b13a81012692241e1ccf9b46fe20174297b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh
if type rofi &>/dev/null
then
cmd=$(rofi -show ssh)
elif type dmenu &>/dev/null
then
cmd="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
if [[ "$cmd " != " " ]]
then
if [[ $cmd == *"ircbox"* ]] && [[ $TERMINAL == "urxvt" ]]
then
exec i3-sensible-terminal -vb -e $cmd
else
exec i3-sensible-terminal -e $cmd
fi
fi
|