diff --git a/config/tmuxinator/desktop.yml b/config/tmuxinator/desktop.yml index ccf58cd06..c388cd0ef 100644 --- a/config/tmuxinator/desktop.yml +++ b/config/tmuxinator/desktop.yml @@ -7,3 +7,4 @@ windows: panes: - - + - desktop: diff --git a/config/tmuxinator/mobile.yml b/config/tmuxinator/mobile.yml index 387fad573..4a2ad0b95 100644 --- a/config/tmuxinator/mobile.yml +++ b/config/tmuxinator/mobile.yml @@ -7,3 +7,4 @@ windows: panes: - - + - mobile: diff --git a/config/tmuxinator/primary.yml b/config/tmuxinator/primary.yml index 07f04a671..d1626dae8 100644 --- a/config/tmuxinator/primary.yml +++ b/config/tmuxinator/primary.yml @@ -7,3 +7,4 @@ windows: panes: - - + - primary: diff --git a/config/tmuxinator/work.yml b/config/tmuxinator/work.yml index 88150e965..80199333a 100644 --- a/config/tmuxinator/work.yml +++ b/config/tmuxinator/work.yml @@ -2,3 +2,4 @@ name: work windows: - editor: nvim - shell: + - work: diff --git a/home-manager/packages/default.nix b/home-manager/packages/default.nix index 905204ba9..a467c28be 100644 --- a/home-manager/packages/default.nix +++ b/home-manager/packages/default.nix @@ -58,6 +58,7 @@ with pkgs; htop httpie hyperfine + input-leap jq jujutsu just diff --git a/home-manager/programs/tmux/tmux.conf b/home-manager/programs/tmux/tmux.conf index 0afbac186..d572a4e0e 100644 --- a/home-manager/programs/tmux/tmux.conf +++ b/home-manager/programs/tmux/tmux.conf @@ -107,7 +107,7 @@ set -g clock-mode-style 24 # ============================================================================= set -g status-style "bg=colour22,fg=colour255" set -g status-left "#[bg=colour28,fg=colour255,bold] #S #[bg=colour22,fg=colour28] " -set -g status-right "#[fg=colour250]#{?#{pane_current_command},#{pane_current_command},} #[fg=colour28]| #[fg=colour255]%Y/%m/%d %H:%M:%S " +set -g status-right "#[fg=colour250]#{?#{pane_current_command},#{pane_current_command},} #[fg=colour28]| #[fg=colour255]%Y/%m/%d %H:%M:%S #{continuum_status}" set -g status-left-length 30 set -g status-right-length 60 @@ -126,9 +126,10 @@ set -g message-style "bg=colour28,fg=colour255" # ============================================================================= # Plugin configuration # ============================================================================= -# Resurrect + Continuum (session persistence) +# Resurrect + Continuum (session persistence — work session only) set -g @resurrect-capture-pane-contents 'on' set -g @resurrect-processes 'btop fish git' +set -g @resurrect-hook-post-save-all 'd=~/.tmux/resurrect && f="$d/$(readlink "$d/last")" && grep -E "^(pane|window) work " "$f" > "$f.tmp" && printf "state\twork\n" >> "$f.tmp" && mv "$f.tmp" "$f"' set -g @continuum-restore 'off' set -g @continuum-save-interval '3'