It would be really useful if you could save certain tabs to be loaded when Guake starts up, similar to the options in web browsers.
Each tab would be able to assign the name of the tab and a single command which is run.
So tab "server"1 is created, having already run "ssh server1" and being logged into the server ready and waiting.
Another one for "top", one each for different servers, the possibilities are endless depending on the individuals requirements and shell use knowledge.
I believe you should be able to write a bash script which is loaded automatically on boot, e.g. GNOME autostart script.
Something like:
#!/bin/bash
# guake-open-tabs.sh
sleep 5
guake --new-tab=whatever && guake --execute-command='cd /home/patrick/path/to/project/'
guake --new-tab=whatever && guake --execute-command='ssh passwordless_machine_alias'
That _should_ work. Although it would certainly be cool to borrow some of the functionality from web browsers (open these tabs when I start, or, perhaps even better, open tabs from last session, etc.).
Thats interesting, wasn't aware of terminal functionality for guake
(besides the obvious of course!)
Having just tested this, it gets close to achieving what would be wanted.
Newtab works, execute works, but it doesn't name the tab.
Delving into the source on bithub I found what was needed.
guake --new-tab='doesnothing' --rename-tab='the tabs name' && guake
--execute-command='cd /home/patrick/path/to/project/'
Since the users of guake are likely to be comfortable with the terminal
this script solution is probably fine, although a gui in the preferences
could be nice. Could be a nice addition to the FAQ though.
Thanks for the help, exactly what I was hoping for!
On 07/08/2013 10:22 PM, Patrick Paul wrote:
I believe you should be able to write a bash script which is loaded
automatically on boot, e.g. GNOME autostart script.Something like:
!/bin/bash
guake-open-tabs.sh
sleep 5
guake --new-tab=whatever&& guake --execute-command='cd /home/patrick/path/to/project/'
guake --new-tab=whatever&& guake --execute-command='ssh passwordless_machine_alias'That /should/ work. Although it would certainly be cool to borrow some
of the functionality from web browsers (open these tabs when I start,
or, perhaps even better, open tabs from last session, etc.).—
Reply to this email directly or view it on GitHub
https://github.com/Guake/guake/issues/198#issuecomment-20613104.
Best Regards,
_Mark Walker_
CTO
PPCnSEO http://ppcnseo.com
_Website:_ http://www.ppcnseo.com
_Email:_ [email protected]
_UK:_ +44(0)208 12 333 07
_TH:_ +66(0)815 884 380
_AU:_ +61(0)86 102 1001
_Skype:_ PPCnSEO
Like on Facebook
http://www.facebook.com/plugins/like.php?href=http://www.facebook.com/PPCnSEO?ref%3Dts&layout=standard&show_faces=true&width=450&action=like&colorscheme=light&height=80
Share on Facebook
https://www.facebook.com/sharer.php?u=http://ppcnseo.com&t=PPCnSEO
Tweet
http://twitter.com/intent/tweet?source=sharethiscom&text=PPC%20and%20SEO&url=http://ppcnseo.com
from my personal experience i used:
#!/bin/bash
# guake-open-tabs.sh
/usr/bin/guake &
sleep 5
guake -r "home"
guake -n k -r "client" --execute-command='cd projects/project1/client/'
guake -n k -r "server" --execute-command='cd projects/project2/server/'
guake -n k -r "git" --execute-command='cd projects/project1/'
guake -n k -r "sudo"
guake -n k -r "optional"
Make it a script and add it to your linux distribution startup system, instead of using /usr/bin/guake
nice, thanks for sharing
I like the idea on saving the tab between session. Will see if I can do something around it.
closing it. Wont fix
I've added a parameter that allows to setup a startup script when guake starts. It's not exposed in the preferences, only in gconf.
For information, here is my startup script:
sleep 5
guake -r "main" -e "cd ~/projects/"
guake -n "devtools" -r "dev-tools" -e "cd ~/projects/dev-tools"
guake -n "python" -r "ipython" -e "python"
guake -s 0
Most helpful comment
For information, here is my startup script: