1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-09-16 08:41:42 +00:00
dotfiles/scripts/.bin/one-terminator.sh
J. Fernando Sánchez fc8c11d360 New config
2015-09-18 02:14:17 +02:00

11 lines
243 B
Bash
Executable File

#!/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