blob: c3c3386479e2c6128791a54bb3aea7c44f3b5ce7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/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 == *"ircbox"* ]] && [[ $TERMINAL == "urxvt" ]]
then
exec i3-sensible-terminal -vb -e $cmd
else
exec i3-sensible-terminal -e $cmd
fi
|