fix(tmux): fix continuum timer
This commit is contained in:
parent
bcd5cdc1bf
commit
3aceeeca75
2 changed files with 6 additions and 3 deletions
|
|
@ -61,6 +61,7 @@ unbind m; bind m set -g mouse\; run-shell 'mux bar'\; refresh -S
|
||||||
unbind ^; bind ^ last-window
|
unbind ^; bind ^ last-window
|
||||||
unbind w; bind w kill-pane;
|
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 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
|
unbind H; bind H run 'mux switch 0'\; refresh -S
|
||||||
|
|
|
||||||
|
|
@ -118,9 +118,11 @@ bar)
|
||||||
i=$((i + 1))
|
i=$((i + 1))
|
||||||
done
|
done
|
||||||
set +f
|
set +f
|
||||||
left=' #[align=left list=on]#{W:#[range=window|#{window_index}]#{window_index}:#{window_name}#{window_flags}#[norange]#{?window_end_flag,, │ }}#[nolist]'
|
tmux set -g status-left ' '
|
||||||
right="#[align=right]$indicator $bar_content "
|
tmux set -g window-status-format '#[range=window|#{window_index}]#{window_index}:#{window_name}#{window_flags}#[norange]'
|
||||||
tmux set -g 'status-format[0]' "$left$right"
|
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)
|
switch)
|
||||||
session="$(tmux ls -F '#S' | tail -n "+$(($2 + 1))" | head -1)"
|
session="$(tmux ls -F '#S' | tail -n "+$(($2 + 1))" | head -1)"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue