mirror of
https://github.com/balkian/dotfiles.git
synced 2024-11-05 13:11:43 +00:00
d8f23e0276
To make my life a bit easier
11 lines
243 B
Bash
Executable File
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
|