Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: set tabs for startup (is not "save session") #198

Closed
PPCnSEO opened this issue Jul 7, 2013 · 8 comments
Closed

Feature Request: set tabs for startup (is not "save session") #198

PPCnSEO opened this issue Jul 7, 2013 · 8 comments

Comments

@PPCnSEO
Copy link

PPCnSEO commented Jul 7, 2013

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.

@pztrick
Copy link
Contributor

pztrick commented Jul 8, 2013

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.).

@PPCnSEO
Copy link
Author

PPCnSEO commented Jul 9, 2013

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
#198 (comment).

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

@colthreepv
Copy link

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

@vainikkaj
Copy link

nice, thanks for sharing

@gsemet
Copy link
Member

gsemet commented Feb 11, 2014

I like the idea on saving the tab between session. Will see if I can do something around it.

@gsemet
Copy link
Member

gsemet commented Feb 13, 2014

closing it. Wont fix

@gsemet gsemet closed this as completed Feb 13, 2014
@gsemet
Copy link
Member

gsemet commented Jul 11, 2014

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.

@gsemet gsemet reopened this Jul 11, 2014
gsemet added a commit to gsemet/guake that referenced this issue Jul 11, 2014
+ fix pylint errors

Signed-off-by: Gaetan Semet <[email protected]>
@gsemet gsemet added this to the 0.5.0 milestone Jul 11, 2014
@gsemet gsemet self-assigned this Jul 11, 2014
@gsemet
Copy link
Member

gsemet commented Jul 11, 2014

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

@gsemet gsemet modified the milestones: 0.5.1, 0.5.0 Jul 11, 2014
@gsemet gsemet modified the milestones: 0.5.1, 1.0.0 Sep 7, 2014
@gsemet gsemet added this to the 0.5.2 milestone Nov 5, 2014
@gsemet gsemet removed this from the 1.0.0 milestone Nov 5, 2014
@gsemet gsemet changed the title Set tabs for startup Feature Request: set tabs for startup (is not "save session") Nov 5, 2014
@gsemet gsemet modified the milestones: 0.6.0, 0.5.2 Nov 5, 2014
@gsemet gsemet modified the milestones: 0.7.0, 0.6.0 Apr 18, 2015
@gsemet gsemet closed this as completed in 970751a Apr 22, 2015
gsemet added a commit that referenced this issue Jan 30, 2017
+ fix pylint errors

Signed-off-by: Gaetan Semet <[email protected]>
gsemet added a commit that referenced this issue Jan 30, 2017
gsemet added a commit that referenced this issue Jan 30, 2017
+ fix pylint errors

Signed-off-by: Gaetan Semet <[email protected]>
gsemet added a commit that referenced this issue Jan 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants