How do I make terminator emulator appear and disappear like guake?
Solution 1
I was trying do the same thing (being a fan of both guake and terminator). Here's what I came up with (a customized version of desqua's answer to this question):
To launch an application or to show its window if already launched or to minimize if it is focused
1) Install wmctrl & xdotool, or in a terminal: sudo apt-get install wmctrl xdotool
2) Make a script:
- Make a file gedit ~/bin/launch_focus_min.sh
And paste this:
#!/bin/bash
#
# This script does this:
# launch an app if it isn't launched yet,
# focus the app if it is launched but not focused,
# minimize the app if it is focused.
#
# by desgua - 2012/04/29
# modified by olds22 - 2012/09/16
# - customized to accept a parameter
# - made special exception to get it working with terminator
# First let's check if the needed tools are installed:
tool1=$(which xdotool)
tool2=$(which wmctrl)
if [ -z $tool1 ]; then
echo "Xdotool is needed, do you want to install it now? [Y/n]"
read a
if [[ $a == "Y" || $a == "y" || $a = "" ]]; then
sudo apt-get install xdotool
else
echo "Exiting then..."
exit 1
fi
fi
if [ -z $tool2 ]; then
echo "Wmctrl is needed, do you want to install it now? [Y/n]"
read a
if [[ $a == "Y" || $a == "y" || $a = "" ]]; then
sudo apt-get install wmctrl
else
echo "Exiting then..."
exit 1
fi
fi
# check if we're trying to use an app that needs a special process name
# (because it runs multiple processes and/or under a different name)
app=$1
if [[ $app == terminator ]]; then
process_name=usr/bin/terminator
else
process_name=$app
fi
# Check if the app is running (in this case $process_name)
#pid=$(pidof $process_name) # pidof didn't work for terminator
pid=$(pgrep -f $process_name)
# If it isn't launched, then launch
if [ -z $pid ]; then
$app
else
# If it is launched then check if it is focused
foc=$(xdotool getactivewindow getwindowpid)
if [[ $pid == $foc ]]; then
# if it is focused, then minimize
xdotool getactivewindow windowminimize
else
# if it isn't focused then get focus
wmctrl -x -R $app
fi
fi
exit 0
- Make it executable:
chmod +x ~/bin/launch_focus_min.sh
3) Make your keyboard shortcut:
Open your keyboard settings and create a custom shorcut with the command:
/home/<user>/bin/launch_focus_min.sh terminator
(~/bin won't work)assign this command to Shift+Escape (or whatever keyboard shortcut you used for guake).
Solution 2
By selecting a set of preferences in Terminator, you can make it work almost similar to Guake.
Refer to the following article for detailed explanation.
http://www.webupd8.org/2011/07/install-terminator-with-built-in-quake.html
I would advise you to follow all the steps in the article to get the desired results. I skipped a few steps, thinking they weren't necessary, but were actually needed to overcome some bugs.
Related videos on Youtube
tashfeen
Updated on September 18, 2022Comments
-
tashfeen over 1 year
I have ported my ios game to android using indie version. It has following issues:
- Custom scroll implemented through code doesn't show up
- Touches on ccmenu works on and off i.e i have to restart the game again and again sometimes they work sometimes they don't.
- Nib files have the same issue mentioned in step two. Works on and off have to restart again and again.
- Game icon is not appearing
- Sometimes game stucks randomly and crashes.
Update:
Note: UIScroll works where we have used them in tableView and doesn't work where we have only used UIscroll.
-
Chirag over 11 yearsCannot leave terminator. I am using it since, last 2 years. Almost addicted to it by now. :)
-
Chirag over 11 yearsI tried this but it does not seem to work for me.
-
Sina over 9 yearsThis is the perfect solution, The best of Guake with the best of Terminator, Thanks.
-
Victor Basso about 9 yearshad to change "~/bin/launch_focus_min.sh terminator" into "/home/<user>/bin/launch_focus_min.sh terminator" for it to work for me
-
sean_j_roberts over 4 yearsI had to add a bash shebang to the beginning of the file to get it to run properly under zsh:
#!/bin/bash