From 3aceeeca753f19950b93adcad5cca0acacc5996d Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Sat, 14 Feb 2026 23:11:51 -0500 Subject: [PATCH] fix(tmux): fix continuum timer --- config/tmux/tmux.conf | 1 + scripts/mux | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 9386a69..0e6cdc0 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -61,6 +61,7 @@ unbind m; bind m set -g mouse\; run-shell 'mux bar'\; refresh -S unbind ^; bind ^ last-window unbind w; bind w kill-pane; +unbind t; bind t neww -c '#{pane_current_path}' unbind e; bind e neww -n 'tmux.conf' "sh -c 'nvim $XDG_CONFIG_HOME/nix/config/tmux/tmux.conf; tmux source $XDG_CONFIG_HOME/tmux/tmux.conf'" unbind H; bind H run 'mux switch 0'\; refresh -S diff --git a/scripts/mux b/scripts/mux index d4416b0..a5c9729 100755 --- a/scripts/mux +++ b/scripts/mux @@ -118,9 +118,11 @@ bar) i=$((i + 1)) done set +f - left=' #[align=left list=on]#{W:#[range=window|#{window_index}]#{window_index}:#{window_name}#{window_flags}#[norange]#{?window_end_flag,, │ }}#[nolist]' - right="#[align=right]$indicator $bar_content " - tmux set -g 'status-format[0]' "$left$right" + tmux set -g status-left ' ' + tmux set -g window-status-format '#[range=window|#{window_index}]#{window_index}:#{window_name}#{window_flags}#[norange]' + tmux set -g window-status-current-format '#[range=window|#{window_index}]#{window_index}:#{window_name}#{window_flags}#[norange]' + tmux set -g window-status-separator ' │ ' + tmux set -g status-right "$indicator $bar_content " ;; switch) session="$(tmux ls -F '#S' | tail -n "+$(($2 + 1))" | head -1)"