tmux configuration

As a latecomer to tmux, I spent years using the tabs in lxterminal for running multiple sessions and set up C-left/right to tab between them.

Is it possible to do this with tmux? Or do I need to use the prefix key?
 
You always have to use a 'prefix' key. So tmux knows the next character is for it, not the application running in that session.
 
After looking at numerous examples of tmux.confs, Istill can't see a way to make tmux start up with three windows running prog1, prog2, prog3.

I've seen examples of starting programs at the command line, but I'm unclear about how to do it in the conf.
 
From tmux(1):
source-file [-q] path
(alias: source)
Execute commands from path. If -q is given, no error will be
returned if path does not exist.

Create a file with your commands and "source" that in Tmux.
 
You always have to use a 'prefix' key. So tmux knows the next character is for it, not the application running in that session.
This seems to do what I want:-

Code:
# Ctrl + arrow to switch windows                                                                                                                                                                   
bind -n C-Left  previous-window                                                                                                                                                                   
bind -n C-Right next-window

Can anyone check that it works for them?
 
Back
Top