Quake-style terminal with splitting in Gnome other than Yakuake
The most common Quake-style terminal in Gnome seem to be Guake and Tilda, but they can't split to show several shells in single tab like Yakuake can. Is there any alternative which can do so?
guake yakuake
add a comment |
The most common Quake-style terminal in Gnome seem to be Guake and Tilda, but they can't split to show several shells in single tab like Yakuake can. Is there any alternative which can do so?
guake yakuake
Welcome to Ask Ubuntu! The question you have posted does not fall in the scope of questions discussed here. Please refer to the FAQ to see what kind of questions you can ask here. Regards,
– Ringtail
Apr 5 '12 at 8:08
4
@BlueXrider Why do you think this is offtopic?
– Oli♦
Apr 5 '12 at 8:31
They're all terminal emulators for linux...it's not specific to ubuntu IMHO...
– Ringtail
Apr 5 '12 at 8:38
Have you solved this issue?
– pl1nk
Jun 24 '12 at 22:38
add a comment |
The most common Quake-style terminal in Gnome seem to be Guake and Tilda, but they can't split to show several shells in single tab like Yakuake can. Is there any alternative which can do so?
guake yakuake
The most common Quake-style terminal in Gnome seem to be Guake and Tilda, but they can't split to show several shells in single tab like Yakuake can. Is there any alternative which can do so?
guake yakuake
guake yakuake
asked Apr 5 '12 at 6:48
Alexey RomanovAlexey Romanov
101115
101115
Welcome to Ask Ubuntu! The question you have posted does not fall in the scope of questions discussed here. Please refer to the FAQ to see what kind of questions you can ask here. Regards,
– Ringtail
Apr 5 '12 at 8:08
4
@BlueXrider Why do you think this is offtopic?
– Oli♦
Apr 5 '12 at 8:31
They're all terminal emulators for linux...it's not specific to ubuntu IMHO...
– Ringtail
Apr 5 '12 at 8:38
Have you solved this issue?
– pl1nk
Jun 24 '12 at 22:38
add a comment |
Welcome to Ask Ubuntu! The question you have posted does not fall in the scope of questions discussed here. Please refer to the FAQ to see what kind of questions you can ask here. Regards,
– Ringtail
Apr 5 '12 at 8:08
4
@BlueXrider Why do you think this is offtopic?
– Oli♦
Apr 5 '12 at 8:31
They're all terminal emulators for linux...it's not specific to ubuntu IMHO...
– Ringtail
Apr 5 '12 at 8:38
Have you solved this issue?
– pl1nk
Jun 24 '12 at 22:38
Welcome to Ask Ubuntu! The question you have posted does not fall in the scope of questions discussed here. Please refer to the FAQ to see what kind of questions you can ask here. Regards,
– Ringtail
Apr 5 '12 at 8:08
Welcome to Ask Ubuntu! The question you have posted does not fall in the scope of questions discussed here. Please refer to the FAQ to see what kind of questions you can ask here. Regards,
– Ringtail
Apr 5 '12 at 8:08
4
4
@BlueXrider Why do you think this is offtopic?
– Oli♦
Apr 5 '12 at 8:31
@BlueXrider Why do you think this is offtopic?
– Oli♦
Apr 5 '12 at 8:31
They're all terminal emulators for linux...it's not specific to ubuntu IMHO...
– Ringtail
Apr 5 '12 at 8:38
They're all terminal emulators for linux...it's not specific to ubuntu IMHO...
– Ringtail
Apr 5 '12 at 8:38
Have you solved this issue?
– pl1nk
Jun 24 '12 at 22:38
Have you solved this issue?
– pl1nk
Jun 24 '12 at 22:38
add a comment |
4 Answers
4
active
oldest
votes
Try Guake with tmux to get the splitting feature.
For Ubuntu 14.04
Terra can be made to run on Ubuntu 14.04. See this answer for details
For Ubuntu 13.04 and older
Alternatively there is a new experimental project called Terra.
Terra is a GTK+3.0 based terminal emulator with useful user interface,
it also supports multiple terminals with splitting screen horizontally
or vertically.
Quick installation:
sudo add-apt-repository ppa:ozcanesen/terra-terminal
sudo apt-get update
sudo apt-get install terra
For more information check out the WebUpd8 article.
add a comment |
You can write a small script to make any window bring to the front. Though it is not sliding down from top like in quake it serves the purpose. I'm using terminator as my grid terminal since its very powerful.
The script I'm using for this is given below. So first install terminator and wmctrl then put this script where you keep your scripts and add a shortcut key (eg: Ctrl+`) and your done.
Now when you press Ctrl+` terminator comes to the front and press the same once more, it will go to the back of the other windows.
#!/bin/bash
TM_STATE=/tmp/tm_stat
WIN=$( wmctrl -lGx | grep -i terminator | awk '{print $1}' );
if [[ $WIN == "" ]]
then
terminator&
exit 0
else
if [[ -e $TM_STATE ]]
then
wmctrl -i -r $WIN -b remove,below
wmctrl -i -r $WIN -b add,above
#wmctrl -i -r $WIN -b remove,shaded
#wmctrl -i -a $WIN
rm $TM_STATE
else
wmctrl -i -r $WIN -b remove,above
wmctrl -i -r $WIN -b add,below
#wmctrl -i -r $WIN -b add,shaded
touch $TM_STATE
fi
fi
add a comment |
Byobu
I use (now on 16.04) Guake with Byobu as shell interpreter, which by default use tmux
(probably better than screen
).
Three steps
- Install:
sudo apt-get install byobu
(no PPAs needed). - Add it to available shells:
which byobu | tee -a /etc/shells
, as I told in this Guake Github issue. - On Guake preferences (
guake-prefs
) choose Byobu as the default interpreter:
Optional: Hide tab bar, since you will use Byobu for that:
- If a shortcut doesn't work try disabling Guake ones that might interfere (in my case was Ctrl+F2 for vertical split):
Other suggestions
- Learn shortcuts with Shift+F1 or this excellent screencast.
- Learn available byobu terminal commands with
apropos byobu
- To use fn keys on Midnight Commander use Alt+Nº or Shift+F12 to disable byobu F-keys.
Tilix quake mode seems a acceptable alternative to Guake.
Hi ,Can you please tell me how to how and paste in this? ctrl+shift+c does not work!!
– Ryan
16 hours ago
@Ryan Easy: ctrl+shift+c to copy, ctrl+shift+v to paste. If it doesn't work in your case maybe those keybindings are messing out with something else, maybe on Settings> Devices> Keyboard. Is also handy the primary selection buffer (just select and then middle-clic) in addition to the usual clipboard buffer. This may be useful too.
– Pablo Bianchi
10 hours ago
add a comment |
For Xenial users do this. It works great with terminator so far.
This will run/show/hide when using keyboard shortcut
I had F12
mapped to show/hide Guake for a while now but wanted terminal panes.
sudo apt update && sudo apt install xdotool wmctrl
cd ~ && touch terminator_show_hide.sh && sudo chmod +x terminator_show_hide.sh
Paste this in the file:
#!/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
Then drop Guake map, if replacing the same shortcut like I was.
Open System Settings GUI -> Keyboard -> Shortcuts -> Custom Shortcuts
Click + and add this to command line:
/home/you/terminator_show_hide.sh terminator
Then map the key right there and you should be good to go.
This is slightly modified version of https://askubuntu.com/a/189603/597130
I didn't have the bin folder mentioned and it wouldn't fire from home/me/.local/bin
but when I moved it to /home/me/
it worked instantly.
Now I have the best of both worlds, Guake Show/Hide & PANES!!
FYI: I'm putting this info here because I found this post on first search. I found the other post after digging a little wider hole.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f119095%2fquake-style-terminal-with-splitting-in-gnome-other-than-yakuake%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
4 Answers
4
active
oldest
votes
4 Answers
4
active
oldest
votes
active
oldest
votes
active
oldest
votes
Try Guake with tmux to get the splitting feature.
For Ubuntu 14.04
Terra can be made to run on Ubuntu 14.04. See this answer for details
For Ubuntu 13.04 and older
Alternatively there is a new experimental project called Terra.
Terra is a GTK+3.0 based terminal emulator with useful user interface,
it also supports multiple terminals with splitting screen horizontally
or vertically.
Quick installation:
sudo add-apt-repository ppa:ozcanesen/terra-terminal
sudo apt-get update
sudo apt-get install terra
For more information check out the WebUpd8 article.
add a comment |
Try Guake with tmux to get the splitting feature.
For Ubuntu 14.04
Terra can be made to run on Ubuntu 14.04. See this answer for details
For Ubuntu 13.04 and older
Alternatively there is a new experimental project called Terra.
Terra is a GTK+3.0 based terminal emulator with useful user interface,
it also supports multiple terminals with splitting screen horizontally
or vertically.
Quick installation:
sudo add-apt-repository ppa:ozcanesen/terra-terminal
sudo apt-get update
sudo apt-get install terra
For more information check out the WebUpd8 article.
add a comment |
Try Guake with tmux to get the splitting feature.
For Ubuntu 14.04
Terra can be made to run on Ubuntu 14.04. See this answer for details
For Ubuntu 13.04 and older
Alternatively there is a new experimental project called Terra.
Terra is a GTK+3.0 based terminal emulator with useful user interface,
it also supports multiple terminals with splitting screen horizontally
or vertically.
Quick installation:
sudo add-apt-repository ppa:ozcanesen/terra-terminal
sudo apt-get update
sudo apt-get install terra
For more information check out the WebUpd8 article.
Try Guake with tmux to get the splitting feature.
For Ubuntu 14.04
Terra can be made to run on Ubuntu 14.04. See this answer for details
For Ubuntu 13.04 and older
Alternatively there is a new experimental project called Terra.
Terra is a GTK+3.0 based terminal emulator with useful user interface,
it also supports multiple terminals with splitting screen horizontally
or vertically.
Quick installation:
sudo add-apt-repository ppa:ozcanesen/terra-terminal
sudo apt-get update
sudo apt-get install terra
For more information check out the WebUpd8 article.
edited Feb 5 '16 at 20:34
Mitch
3,1961531
3,1961531
answered Apr 5 '12 at 8:35
lgarzolgarzo
13.7k53335
13.7k53335
add a comment |
add a comment |
You can write a small script to make any window bring to the front. Though it is not sliding down from top like in quake it serves the purpose. I'm using terminator as my grid terminal since its very powerful.
The script I'm using for this is given below. So first install terminator and wmctrl then put this script where you keep your scripts and add a shortcut key (eg: Ctrl+`) and your done.
Now when you press Ctrl+` terminator comes to the front and press the same once more, it will go to the back of the other windows.
#!/bin/bash
TM_STATE=/tmp/tm_stat
WIN=$( wmctrl -lGx | grep -i terminator | awk '{print $1}' );
if [[ $WIN == "" ]]
then
terminator&
exit 0
else
if [[ -e $TM_STATE ]]
then
wmctrl -i -r $WIN -b remove,below
wmctrl -i -r $WIN -b add,above
#wmctrl -i -r $WIN -b remove,shaded
#wmctrl -i -a $WIN
rm $TM_STATE
else
wmctrl -i -r $WIN -b remove,above
wmctrl -i -r $WIN -b add,below
#wmctrl -i -r $WIN -b add,shaded
touch $TM_STATE
fi
fi
add a comment |
You can write a small script to make any window bring to the front. Though it is not sliding down from top like in quake it serves the purpose. I'm using terminator as my grid terminal since its very powerful.
The script I'm using for this is given below. So first install terminator and wmctrl then put this script where you keep your scripts and add a shortcut key (eg: Ctrl+`) and your done.
Now when you press Ctrl+` terminator comes to the front and press the same once more, it will go to the back of the other windows.
#!/bin/bash
TM_STATE=/tmp/tm_stat
WIN=$( wmctrl -lGx | grep -i terminator | awk '{print $1}' );
if [[ $WIN == "" ]]
then
terminator&
exit 0
else
if [[ -e $TM_STATE ]]
then
wmctrl -i -r $WIN -b remove,below
wmctrl -i -r $WIN -b add,above
#wmctrl -i -r $WIN -b remove,shaded
#wmctrl -i -a $WIN
rm $TM_STATE
else
wmctrl -i -r $WIN -b remove,above
wmctrl -i -r $WIN -b add,below
#wmctrl -i -r $WIN -b add,shaded
touch $TM_STATE
fi
fi
add a comment |
You can write a small script to make any window bring to the front. Though it is not sliding down from top like in quake it serves the purpose. I'm using terminator as my grid terminal since its very powerful.
The script I'm using for this is given below. So first install terminator and wmctrl then put this script where you keep your scripts and add a shortcut key (eg: Ctrl+`) and your done.
Now when you press Ctrl+` terminator comes to the front and press the same once more, it will go to the back of the other windows.
#!/bin/bash
TM_STATE=/tmp/tm_stat
WIN=$( wmctrl -lGx | grep -i terminator | awk '{print $1}' );
if [[ $WIN == "" ]]
then
terminator&
exit 0
else
if [[ -e $TM_STATE ]]
then
wmctrl -i -r $WIN -b remove,below
wmctrl -i -r $WIN -b add,above
#wmctrl -i -r $WIN -b remove,shaded
#wmctrl -i -a $WIN
rm $TM_STATE
else
wmctrl -i -r $WIN -b remove,above
wmctrl -i -r $WIN -b add,below
#wmctrl -i -r $WIN -b add,shaded
touch $TM_STATE
fi
fi
You can write a small script to make any window bring to the front. Though it is not sliding down from top like in quake it serves the purpose. I'm using terminator as my grid terminal since its very powerful.
The script I'm using for this is given below. So first install terminator and wmctrl then put this script where you keep your scripts and add a shortcut key (eg: Ctrl+`) and your done.
Now when you press Ctrl+` terminator comes to the front and press the same once more, it will go to the back of the other windows.
#!/bin/bash
TM_STATE=/tmp/tm_stat
WIN=$( wmctrl -lGx | grep -i terminator | awk '{print $1}' );
if [[ $WIN == "" ]]
then
terminator&
exit 0
else
if [[ -e $TM_STATE ]]
then
wmctrl -i -r $WIN -b remove,below
wmctrl -i -r $WIN -b add,above
#wmctrl -i -r $WIN -b remove,shaded
#wmctrl -i -a $WIN
rm $TM_STATE
else
wmctrl -i -r $WIN -b remove,above
wmctrl -i -r $WIN -b add,below
#wmctrl -i -r $WIN -b add,shaded
touch $TM_STATE
fi
fi
edited Feb 13 '14 at 1:23
answered Feb 13 '14 at 1:15
mahendramahendra
312
312
add a comment |
add a comment |
Byobu
I use (now on 16.04) Guake with Byobu as shell interpreter, which by default use tmux
(probably better than screen
).
Three steps
- Install:
sudo apt-get install byobu
(no PPAs needed). - Add it to available shells:
which byobu | tee -a /etc/shells
, as I told in this Guake Github issue. - On Guake preferences (
guake-prefs
) choose Byobu as the default interpreter:
Optional: Hide tab bar, since you will use Byobu for that:
- If a shortcut doesn't work try disabling Guake ones that might interfere (in my case was Ctrl+F2 for vertical split):
Other suggestions
- Learn shortcuts with Shift+F1 or this excellent screencast.
- Learn available byobu terminal commands with
apropos byobu
- To use fn keys on Midnight Commander use Alt+Nº or Shift+F12 to disable byobu F-keys.
Tilix quake mode seems a acceptable alternative to Guake.
Hi ,Can you please tell me how to how and paste in this? ctrl+shift+c does not work!!
– Ryan
16 hours ago
@Ryan Easy: ctrl+shift+c to copy, ctrl+shift+v to paste. If it doesn't work in your case maybe those keybindings are messing out with something else, maybe on Settings> Devices> Keyboard. Is also handy the primary selection buffer (just select and then middle-clic) in addition to the usual clipboard buffer. This may be useful too.
– Pablo Bianchi
10 hours ago
add a comment |
Byobu
I use (now on 16.04) Guake with Byobu as shell interpreter, which by default use tmux
(probably better than screen
).
Three steps
- Install:
sudo apt-get install byobu
(no PPAs needed). - Add it to available shells:
which byobu | tee -a /etc/shells
, as I told in this Guake Github issue. - On Guake preferences (
guake-prefs
) choose Byobu as the default interpreter:
Optional: Hide tab bar, since you will use Byobu for that:
- If a shortcut doesn't work try disabling Guake ones that might interfere (in my case was Ctrl+F2 for vertical split):
Other suggestions
- Learn shortcuts with Shift+F1 or this excellent screencast.
- Learn available byobu terminal commands with
apropos byobu
- To use fn keys on Midnight Commander use Alt+Nº or Shift+F12 to disable byobu F-keys.
Tilix quake mode seems a acceptable alternative to Guake.
Hi ,Can you please tell me how to how and paste in this? ctrl+shift+c does not work!!
– Ryan
16 hours ago
@Ryan Easy: ctrl+shift+c to copy, ctrl+shift+v to paste. If it doesn't work in your case maybe those keybindings are messing out with something else, maybe on Settings> Devices> Keyboard. Is also handy the primary selection buffer (just select and then middle-clic) in addition to the usual clipboard buffer. This may be useful too.
– Pablo Bianchi
10 hours ago
add a comment |
Byobu
I use (now on 16.04) Guake with Byobu as shell interpreter, which by default use tmux
(probably better than screen
).
Three steps
- Install:
sudo apt-get install byobu
(no PPAs needed). - Add it to available shells:
which byobu | tee -a /etc/shells
, as I told in this Guake Github issue. - On Guake preferences (
guake-prefs
) choose Byobu as the default interpreter:
Optional: Hide tab bar, since you will use Byobu for that:
- If a shortcut doesn't work try disabling Guake ones that might interfere (in my case was Ctrl+F2 for vertical split):
Other suggestions
- Learn shortcuts with Shift+F1 or this excellent screencast.
- Learn available byobu terminal commands with
apropos byobu
- To use fn keys on Midnight Commander use Alt+Nº or Shift+F12 to disable byobu F-keys.
Tilix quake mode seems a acceptable alternative to Guake.
Byobu
I use (now on 16.04) Guake with Byobu as shell interpreter, which by default use tmux
(probably better than screen
).
Three steps
- Install:
sudo apt-get install byobu
(no PPAs needed). - Add it to available shells:
which byobu | tee -a /etc/shells
, as I told in this Guake Github issue. - On Guake preferences (
guake-prefs
) choose Byobu as the default interpreter:
Optional: Hide tab bar, since you will use Byobu for that:
- If a shortcut doesn't work try disabling Guake ones that might interfere (in my case was Ctrl+F2 for vertical split):
Other suggestions
- Learn shortcuts with Shift+F1 or this excellent screencast.
- Learn available byobu terminal commands with
apropos byobu
- To use fn keys on Midnight Commander use Alt+Nº or Shift+F12 to disable byobu F-keys.
Tilix quake mode seems a acceptable alternative to Guake.
edited 11 hours ago
answered Mar 31 '17 at 19:23
Pablo BianchiPablo Bianchi
2,78821533
2,78821533
Hi ,Can you please tell me how to how and paste in this? ctrl+shift+c does not work!!
– Ryan
16 hours ago
@Ryan Easy: ctrl+shift+c to copy, ctrl+shift+v to paste. If it doesn't work in your case maybe those keybindings are messing out with something else, maybe on Settings> Devices> Keyboard. Is also handy the primary selection buffer (just select and then middle-clic) in addition to the usual clipboard buffer. This may be useful too.
– Pablo Bianchi
10 hours ago
add a comment |
Hi ,Can you please tell me how to how and paste in this? ctrl+shift+c does not work!!
– Ryan
16 hours ago
@Ryan Easy: ctrl+shift+c to copy, ctrl+shift+v to paste. If it doesn't work in your case maybe those keybindings are messing out with something else, maybe on Settings> Devices> Keyboard. Is also handy the primary selection buffer (just select and then middle-clic) in addition to the usual clipboard buffer. This may be useful too.
– Pablo Bianchi
10 hours ago
Hi ,Can you please tell me how to how and paste in this? ctrl+shift+c does not work!!
– Ryan
16 hours ago
Hi ,Can you please tell me how to how and paste in this? ctrl+shift+c does not work!!
– Ryan
16 hours ago
@Ryan Easy: ctrl+shift+c to copy, ctrl+shift+v to paste. If it doesn't work in your case maybe those keybindings are messing out with something else, maybe on Settings> Devices> Keyboard. Is also handy the primary selection buffer (just select and then middle-clic) in addition to the usual clipboard buffer. This may be useful too.
– Pablo Bianchi
10 hours ago
@Ryan Easy: ctrl+shift+c to copy, ctrl+shift+v to paste. If it doesn't work in your case maybe those keybindings are messing out with something else, maybe on Settings> Devices> Keyboard. Is also handy the primary selection buffer (just select and then middle-clic) in addition to the usual clipboard buffer. This may be useful too.
– Pablo Bianchi
10 hours ago
add a comment |
For Xenial users do this. It works great with terminator so far.
This will run/show/hide when using keyboard shortcut
I had F12
mapped to show/hide Guake for a while now but wanted terminal panes.
sudo apt update && sudo apt install xdotool wmctrl
cd ~ && touch terminator_show_hide.sh && sudo chmod +x terminator_show_hide.sh
Paste this in the file:
#!/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
Then drop Guake map, if replacing the same shortcut like I was.
Open System Settings GUI -> Keyboard -> Shortcuts -> Custom Shortcuts
Click + and add this to command line:
/home/you/terminator_show_hide.sh terminator
Then map the key right there and you should be good to go.
This is slightly modified version of https://askubuntu.com/a/189603/597130
I didn't have the bin folder mentioned and it wouldn't fire from home/me/.local/bin
but when I moved it to /home/me/
it worked instantly.
Now I have the best of both worlds, Guake Show/Hide & PANES!!
FYI: I'm putting this info here because I found this post on first search. I found the other post after digging a little wider hole.
add a comment |
For Xenial users do this. It works great with terminator so far.
This will run/show/hide when using keyboard shortcut
I had F12
mapped to show/hide Guake for a while now but wanted terminal panes.
sudo apt update && sudo apt install xdotool wmctrl
cd ~ && touch terminator_show_hide.sh && sudo chmod +x terminator_show_hide.sh
Paste this in the file:
#!/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
Then drop Guake map, if replacing the same shortcut like I was.
Open System Settings GUI -> Keyboard -> Shortcuts -> Custom Shortcuts
Click + and add this to command line:
/home/you/terminator_show_hide.sh terminator
Then map the key right there and you should be good to go.
This is slightly modified version of https://askubuntu.com/a/189603/597130
I didn't have the bin folder mentioned and it wouldn't fire from home/me/.local/bin
but when I moved it to /home/me/
it worked instantly.
Now I have the best of both worlds, Guake Show/Hide & PANES!!
FYI: I'm putting this info here because I found this post on first search. I found the other post after digging a little wider hole.
add a comment |
For Xenial users do this. It works great with terminator so far.
This will run/show/hide when using keyboard shortcut
I had F12
mapped to show/hide Guake for a while now but wanted terminal panes.
sudo apt update && sudo apt install xdotool wmctrl
cd ~ && touch terminator_show_hide.sh && sudo chmod +x terminator_show_hide.sh
Paste this in the file:
#!/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
Then drop Guake map, if replacing the same shortcut like I was.
Open System Settings GUI -> Keyboard -> Shortcuts -> Custom Shortcuts
Click + and add this to command line:
/home/you/terminator_show_hide.sh terminator
Then map the key right there and you should be good to go.
This is slightly modified version of https://askubuntu.com/a/189603/597130
I didn't have the bin folder mentioned and it wouldn't fire from home/me/.local/bin
but when I moved it to /home/me/
it worked instantly.
Now I have the best of both worlds, Guake Show/Hide & PANES!!
FYI: I'm putting this info here because I found this post on first search. I found the other post after digging a little wider hole.
For Xenial users do this. It works great with terminator so far.
This will run/show/hide when using keyboard shortcut
I had F12
mapped to show/hide Guake for a while now but wanted terminal panes.
sudo apt update && sudo apt install xdotool wmctrl
cd ~ && touch terminator_show_hide.sh && sudo chmod +x terminator_show_hide.sh
Paste this in the file:
#!/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
Then drop Guake map, if replacing the same shortcut like I was.
Open System Settings GUI -> Keyboard -> Shortcuts -> Custom Shortcuts
Click + and add this to command line:
/home/you/terminator_show_hide.sh terminator
Then map the key right there and you should be good to go.
This is slightly modified version of https://askubuntu.com/a/189603/597130
I didn't have the bin folder mentioned and it wouldn't fire from home/me/.local/bin
but when I moved it to /home/me/
it worked instantly.
Now I have the best of both worlds, Guake Show/Hide & PANES!!
FYI: I'm putting this info here because I found this post on first search. I found the other post after digging a little wider hole.
edited Apr 13 '17 at 12:24
Community♦
1
1
answered Jan 27 '17 at 2:29
charlyRootcharlyRoot
414
414
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f119095%2fquake-style-terminal-with-splitting-in-gnome-other-than-yakuake%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Welcome to Ask Ubuntu! The question you have posted does not fall in the scope of questions discussed here. Please refer to the FAQ to see what kind of questions you can ask here. Regards,
– Ringtail
Apr 5 '12 at 8:08
4
@BlueXrider Why do you think this is offtopic?
– Oli♦
Apr 5 '12 at 8:31
They're all terminal emulators for linux...it's not specific to ubuntu IMHO...
– Ringtail
Apr 5 '12 at 8:38
Have you solved this issue?
– pl1nk
Jun 24 '12 at 22:38