|
1 | 1 | ---
|
2 | 2 | common:
|
| 3 | + # before_commands will be executed in each pane before doing anything else. Use this e.g. for |
| 4 | + # - sourcing an environment |
| 5 | + # - ssh-ing to another machine |
3 | 6 | before_commands:
|
4 |
| - - fzirob change_environment # before commands can be specified global and per window |
5 |
| - default_window: README # This window will be visible when first attaching to the session |
| 7 | + - echo "This is a catmux window :)" # before commands can be specified global and per window |
| 8 | + |
| 9 | + # The default window will be the one displayed when first connecting to the tmux session |
| 10 | + default_window: README |
6 | 11 | parameters:
|
7 |
| - show_layouts: false |
8 |
| - replacement_param: world\! |
| 12 | + # Parameters specified here can be used below and they can be overwritten at runtime |
| 13 | + show_layouts: false # This parameter is used together with the if flag below |
| 14 | + replacement_param: world\! # Parameters can also be used as replacement templates |
| 15 | + |
| 16 | +# Everything will be opened in windows. Windows can have multiple splits. |
9 | 17 | windows:
|
10 | 18 | - name: roscore
|
11 | 19 | splits:
|
12 | 20 | - commands:
|
13 | 21 | - roscore
|
14 | 22 | delay: 1 # Use this to wait before starting the next window
|
15 | 23 | - name: tiled
|
16 |
| - if: show_layouts |
17 |
| - layout: tiled |
| 24 | + if: show_layouts # this window will only be started when the 'show_layouts' parameter is true |
| 25 | + layout: tiled # One can use the default layouts specified by tmux |
18 | 26 | splits:
|
19 | 27 | - commands:
|
20 | 28 | - echo "hello"
|
@@ -44,12 +52,14 @@ windows:
|
44 | 52 | - commands:
|
45 | 53 | - echo "bottom"
|
46 | 54 | - name: README
|
47 |
| - commands: # This looks a bit weird, but gives nicer colors |
48 |
| - - clear && tput bold && tput setaf 6 && roscat catmux readme_tmux.txt |
49 |
| - - tput sgr0 |
| 55 | + splits: |
| 56 | + - commands: |
| 57 | + # This looks a bit weird, but gives nicer colors |
| 58 | + - clear && tput bold && tput setaf 6 && roscat catmux readme_tmux.txt |
| 59 | + - tput sgr0 |
50 | 60 | - name: no_split
|
51 |
| - unless: show_layouts |
52 |
| - # If just one split is desired, just skip it |
| 61 | + unless: show_layouts # This window will only be displayed if 'show_layouts' is false |
| 62 | + # If just one split is desired, just skip it and write the commands directly |
53 | 63 | commands:
|
54 | 64 | - echo "hello ${replacement_param}"
|
55 | 65 |
|
|
0 commit comments