tmux/splitWORK

38 lines
1.2 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#### Session --------------------------------------------------------------
# -sX : numéro de la session
# -nNOM_TERMINAL : nom du terminal
# -d : indique à tmux de ne pas attacher la session et de ne pas prendre les
# nouvelles fenêtres comme une fenêtre courante
# -tX:Y : modifier les paramètres de la fenêtre Y de la session X. !Attention
# la fenêtre doit exister avant de pouvoir modifier ses paramètres!
# monitor-activity : permet de mettre en avant une fenêtre quand son contenu reçoit un événement
# 'exec ${SHELL}': Allow to keep the pane running after the program exists
# New session for work
# Manage session named **IPR** for work
# If a session already exists {{{
if-shell -b 'tmux has-session -t IPR' {
display-message "Attach to **IPR** existing session"
## Attach to the first pane of the first window
attach-session -t IPR:1.1
}
# }}}
# If no session already exists
if-shell '! tmux has-session -t IPR' {
display-message "Create a new session for Work"
# A first window named **DeLL**
new-session -A -sIPR -nDeLL
# Second window named **Ceph**
new-window -d -nCeph
# Third window named **Prox7**
new-window -d -nProx7
# Default window should be jd:1
#select-window -t 1
# Default pane should be jd:1.1
}