3

i am using i3wm and guake. I always use tmux inside guake to have split functionality detach function etc is there a way to start guake by default tmux running ?

4 Answers 4

3

You can set tmux on Guake Preferences (guake-prefs): Guake Preferences

Or use friendly Byobu, which use tmux as default backend (change this with byobu-select-backend). Take a look at my answer here if you prefer this way.

3

Do you start guake automatically with your Desktop-session? Then yes write in $HOME/.config/autostart/guake.desktop by the Key Exec Exec=guake -e tmux If not cp /usr/share/applications/guake.desktop $HOME/.local/share/applications/guake.desktop and make the change there.

1
  • i was starting it using i3 config file so guake -e tmux did the job :) Commented Dec 6, 2016 at 14:50
1

Tmux as default shell interpreter for guake doesn't attach to any existing session and creates always new. I wanted it to attach to existing session to prevent multiplications of sessions since I use resurrect and continuum plugins.

I've put tmux attach to guake startup setting. I've left guake configured with default user-shell. So in case of crash of guake or something similar, I can just type tmux attach in default shell and continue where I left of.

guake -e 'tmux attach' 

To force tmux to start new session if there is no current session I've placed next line into ~/.tmux.conf file

new-session 
0

This is how I do it. In my .bashrc, I append to the end...

tmux attach || tmux; clear 

That will start tmux detaching the last session or opening a new one and then clearing the screen.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.