add langing sessoin

This commit is contained in:
thek4n 2026-02-19 15:58:14 +03:00
parent b68cc25014
commit ae3b33e945
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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"