New window at startup for authentification tools

This commit is contained in:
Jeremy Gardais 2022-12-12 15:37:40 +01:00
parent 31eee9010e
commit ab504413b8
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
3 changed files with 16 additions and 13 deletions

View File

@ -31,14 +31,16 @@ if-shell '! tmux has-session -t toto' {
# Second window named **Xt0p** with btop running # Second window named **Xt0p** with btop running
new-window -d -nXt0p 'btop ; exec ${SHELL}' new-window -d -nXt0p 'btop ; exec ${SHELL}'
# Third window named **ch4t** with weechat running # Third window named **ch4t** with weechat running
neww -d -nch4t 'weechat ; exec ${SHELL}' new-window -d -nch4t 'weechat ; exec ${SHELL}'
# Fourth window named **git** in main repos directory # Fourth window named **git** in main repos directory
new-window -d -ngit -c '/home/jegardai/repos' new-window -d -ngit -c '/home/jegardai/repos'
# Fifth window for authentication tools
new-window -nAuth 'gpg --quiet --for-your-eyes-only --decrypt ~/.password-store/test.gpg ; exec ${SHELL}'
split-window -h 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; exec ${SHELL}'
set-window-option synchronize-panes on
# Default window should be jd:1 # Default pane should be toto:5.2
#select-window -t 1 #select-pane -ttoto:5.2
# Default pane should be jd:1.2
#select-pane -t 2
} }
# If a default session still exists {{{ # If a default session still exists {{{
if-shell -b 'tmux has-session -t 0' { if-shell -b 'tmux has-session -t 0' {

View File

@ -31,7 +31,6 @@ if-shell '! tmux has-session -t IPR' {
# Third window named **Prox7** # Third window named **Prox7**
new-window -d -nProx7 new-window -d -nProx7
# Default window should be jd:1 # Default pane should be IPR:1.1
#select-window -t 1 #select-pane -tIPR:1.1
# Default pane should be jd:1.1
} }

View File

@ -36,12 +36,14 @@ if-shell '! tmux has-session -t jd' {
new-window -d -nIPR -c '/home/jegardai/repos/ipr.debops' new-window -d -nIPR -c '/home/jegardai/repos/ipr.debops'
# with 2 panes in IPR debops project # with 2 panes in IPR debops project
split-window -d -h -tjd:2.1 -c '/home/jegardai/repos/ipr.debops' split-window -d -h -tjd:2.1 -c '/home/jegardai/repos/ipr.debops'
# Third window in home
#new-window -d
# Default window should be jd:1 # Third window for authentication tools
#select-window -t 1 new-window -nAuth 'gpg --quiet --for-your-eyes-only --decrypt ~/.password-store/test.gpg ; exec ${SHELL}'
# Default pane should be jd:1.1 split-window -h 'ssh-add -l | grep -qi -- "(ed25519)" || ssh-add ~/.ssh/id_ed25519 ; exec ${SHELL}'
set-window-option synchronize-panes on
# Default pane should be jd:3.2
#select-pane -tjd:3.2
} }
# If a default session still exists {{{ # If a default session still exists {{{
if-shell -b 'tmux has-session -t 0' { if-shell -b 'tmux has-session -t 0' {