From 59c6f591f350244d6fbe39fbf08e715b04253ced Mon Sep 17 00:00:00 2001 From: Douglas J Hunley Date: Tue, 28 Apr 2026 09:01:52 -0400 Subject: [PATCH 1/2] revert: do not autospawn tmux on login --- ansible/files/tmux.conf.j2 | 3 --- ansible/tasks/setup-tmux.yml | 13 ++++++------- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ansible/files/tmux.conf.j2 b/ansible/files/tmux.conf.j2 index 1711feebaf..6becfb5f59 100644 --- a/ansible/files/tmux.conf.j2 +++ b/ansible/files/tmux.conf.j2 @@ -18,9 +18,6 @@ bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D -# Enable mouse control (clickable windows, panes, resizable panes) -set -g mouse on - # DESIGN TWEAKS # don't do anything when a 'bell' rings diff --git a/ansible/tasks/setup-tmux.yml b/ansible/tasks/setup-tmux.yml index 1172399cc1..b52f31e717 100644 --- a/ansible/tasks/setup-tmux.yml +++ b/ansible/tasks/setup-tmux.yml @@ -5,13 +5,13 @@ update_cache: true become: true -- name: tmux - Configure shell auto-logout +- name: tmux - Configure tmux alias ansible.builtin.copy: content: | case "$-" in - *i*) export TMOUT=600 ;; + *i*) alias tmux='tmux new-session -A -s supa' ;; esac - dest: '/etc/profile.d/11-shell_timeout.sh' + dest: '/etc/profile.d/11-tmux_alias.sh' group: 'root' mode: '0644' owner: 'root' @@ -26,18 +26,17 @@ src: 'files/tmux.conf.j2' become: true -- name: tmux - Auto-launch tmux as needed +- name: tmux - Auto-logout from stale tmux ansible.builtin.copy: content: | case "$-" in *i*) case "$TERM" in - tmux*) ;; - *) tmux new-session -A -s supa ;; + tmux*) export TMOUT=1200 ;; esac ;; esac - dest: '/etc/profile.d/12-tmux.sh' + dest: '/etc/profile.d/12-tmux_logout.sh' group: 'root' mode: '0644' owner: 'root' From d5fbff237acceeed75d6c06a383776dbb499e679 Mon Sep 17 00:00:00 2001 From: Douglas J Hunley Date: Wed, 29 Apr 2026 10:18:49 -0400 Subject: [PATCH 2/2] fix: adjust the timeout for tmux --- ansible/tasks/setup-tmux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/tasks/setup-tmux.yml b/ansible/tasks/setup-tmux.yml index b52f31e717..93b69ff735 100644 --- a/ansible/tasks/setup-tmux.yml +++ b/ansible/tasks/setup-tmux.yml @@ -32,7 +32,7 @@ case "$-" in *i*) case "$TERM" in - tmux*) export TMOUT=1200 ;; + tmux*) export TMOUT=86400 ;; esac ;; esac