add langing sessoin
This commit is contained in:
parent
b68cc25014
commit
ae3b33e945
@ -9,6 +9,7 @@ ExecStart=/usr/bin/tmux -D -L %u
|
||||
ExecStop=/usr/bin/tmux -L %u kill-server
|
||||
ExecReload=/usr/bin/tmux -L %u source-file %h/.config/tmux/tmux.conf
|
||||
Restart=on-failure
|
||||
ExecStartPost=/usr/bin/tmux -L %u new-session -d -s landing 'sh -c "tmux rename-window -t 1 landing; tmux set-option remain-on-exit on; figlet -ct -f big Landing; trap : INT; while true; do sleep 3600; done"'
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
|
||||
@ -62,9 +62,12 @@ bind n new-session -c ~
|
||||
# Switch new named session
|
||||
bind N command-prompt -p "New session:" "new-session -A -s '%1' -c ~"
|
||||
|
||||
bind x if-shell '[ "$(tmux display-message -p "#S")" != "landing" ]' \
|
||||
"confirm-before -p \"kill current session? (y/n)\" kill-session" \
|
||||
"display-message 'Нельзя закрыть сессию landing'"
|
||||
|
||||
bind x confirm-before -p "kill current session? (y/n)" "kill-session"
|
||||
bind X confirm-before -p "kill last session [#{client_last_session}]? (y/n)" "kill-session -t #{client_last_session} \; display-message \"Killed last session\""
|
||||
|
||||
bind C-x confirm-before -p "kill other sessions? (y/n)" "kill-session -a"
|
||||
|
||||
bind q confirm-before -p "kill current pane? (y/n)" "kill-pane"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user