diff options
Diffstat (limited to 'tmux/.config')
-rw-r--r-- | tmux/.config/tmux/tmux.conf | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 396e23a..8fa0f6a 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -14,13 +14,15 @@ set -g prefix C-a set -g base-index 1 set -g pane-base-index 1 set -g detach-on-destroy off +set -g status-keys vi bind-key -N "Switch last session" A switch-client -l bind-key -N "Clock" T clock-mode -bind-key -N "Host: switch" s run-shell ~/.local/bin/tmux-sshr -bind-key -N "Session: new" f run-shell ~/.local/bin/tmux-projectr -bind-key -N "Session: switch" F run-shell ~/.local/bin/tmux-sessions -bind-key -N "Window: new" t new-window +bind-key -N "Host" s run-shell ~/.local/bin/tmux-sshr +bind-key -N "Session" f run-shell ~/.local/bin/tmux-projectr +bind-key -N "Window" t new-window +bind-key -N "Switch" w choose-tree -Zws -F \ + "#(echo '#{tree_mode_format}' | sed 's%##{session_windows} windows%##{s|$HOME|~|:session_path}%')" # i3/sway style window navigation bind-key '!' if-shell 'tmux swapw -t :1 -d' '' 'movew -t :1' @@ -45,7 +47,8 @@ if "test ! -d $XDG_CONFIG_HOME/tmux/plugins/tpm" \ run '$XDG_CONFIG_HOME/tmux/plugins/tpm/tpm' -set-hook -g session-created 'if -F "#{m/r:^[0-9]+$,#{session_name}}" "rename-session \"#{b:session_path}\""' +set -g status-left-length 30 +set -g status-left "#[bg=#A89984, fg=#3C3836]#{?client_prefix,#[bg=#fe8019],#[bg=#A89984]} #{s|~/||:#{s|$HOME|~|:session_path}} " %if #{m:*ssh,#{socket_path}} source "$XDG_CONFIG_HOME/tmux/ssh.conf" |