I want to start tmux on startup with four panes (two horizontal, two vertical) and cmus, ranger in two, and vim and urxvt terminal in the other two.

I tried to configure ~/.tmux.conf myself but couldn't achieve what I wanted properly.

I'm not very familiar with the concept of session, and they die whenever I turn off my computer.

It would be perfect if I could permanently save a session with specific applications opened on each pane of it, and refer to it when needed.

  • Unless the tmux session is running on a remote host, of course they will die when you turn off your machine; how would you expect them to persist without any power? – jasonwryan Nov 20 '16 at 15:24
  • @jasonwryan saving themselves in a file, and reloading the setting (panes, applications) when I restore? I meant that they're not restorable. I am very okay with programming tmux without the use of sessions as well, as it's not the topic here, but a suggestion that came to my mind. – user86041 Nov 20 '16 at 15:45
  • 1
    See: stackoverflow.com/questions/5609192/… – jasonwryan Nov 20 '16 at 17:24
  • Thanks, but that link is mainly about windows and naming them, though I think tmuxinator might help with specifying the programs to be run on panes. I'll research on it, but still looking for native or pluginless way to achieve the desired in tmux. – user86041 Nov 21 '16 at 10:06
  • That SO answer is exactly what you have asked for; the second window is split into panes (splitw). – jasonwryan Nov 21 '16 at 15:25

You can do that using tmux-plugins called tmux-resurrect for more info : https://github.com/tmux-plugins/tmux-resurrect

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy