fix(tmux): fix continuum timer

This commit is contained in:
Barrett Ruth 2026-02-14 23:11:51 -05:00
parent bcd5cdc1bf
commit 3aceeeca75
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
2 changed files with 6 additions and 3 deletions

View file

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

View file

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