mirror of https://github.com/balkian/dotfiles.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
243 B
Bash
11 lines
243 B
Bash
13 years ago
|
#!/bin/bash
|
||
|
pgrep -u "$USER" gnome-terminal | grep -qv "$$"
|
||
|
if [ "$?" == "0" ]; then
|
||
|
WID=`xdotool search --class "terminator" | head -1`
|
||
|
xdotool windowfocus $WID
|
||
|
xdotool key ctrl+shift+t
|
||
|
#wmctrl -i -a $WID
|
||
|
else
|
||
|
/usr/bin/gnome-terminal
|
||
|
fi
|