diff options
Diffstat (limited to 'tmux')
| -rw-r--r-- | tmux/tmux.conf | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf new file mode 100644 index 0000000..28a99cc --- /dev/null +++ b/tmux/tmux.conf @@ -0,0 +1,54 @@ +set -g status-position bottom +set -g status-style "bg=default,fg=#fcfcfc" +set -g status 2 + +# Row 0: top divider +set -g status-format[0] "#[fg=#444444,bg=default,fill=─]" + +# Row 1: content — session | windows | host +set -g status-format[1] "#[align=left,bg=default]#{E:status-left}#[list=on]#{W:#{E:window-status-format},#{E:window-status-current-format}}#[list=off,align=right]#{E:status-right}" +set -g message-style "bg=default,fg=#fcfcfc" +set -g message-command-style "bg=default,fg=#fcfcfc" + +# Copy mode / scroll indicator +set -g mode-style "bg=default,fg=#fcfcfc,reverse" + +# Left: session name +set -g status-left " #[fg=#fcfcfc]#S #[fg=#555555]│ " +set -g status-left-length 30 + +# Right: host +set -g status-right "#[fg=#555555]│ #[fg=#fcfcfc]#h " +set -g status-right-length 50 + +set -g window-status-format " #[fg=#888888]#I #W " +set -g window-status-current-format " #[fg=#fcfcfc]#I #W " +set -g window-status-separator "" + +set -g pane-border-style "fg=#444444" +set -g pane-active-border-style "fg=#fcfcfc" + +unbind C-b +set -g prefix C-a +bind C-a send-prefix +bind d detach-client + +set -g status-interval 5 +set -sg escape-time 10 +set -g base-index 1 + +set -g mouse on + +# Smooth scrolling (1 line per tick) +bind -T copy-mode WheelUpPane send-keys -X scroll-up +bind -T copy-mode WheelDownPane send-keys -X scroll-down +bind -T copy-mode-vi WheelUpPane send-keys -X scroll-up +bind -T copy-mode-vi WheelDownPane send-keys -X scroll-down + +# Keep selection highlighted after mouse drag +bind -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy" +bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-no-clear "pbcopy" + +# Prevent click from passing through to terminal (causes jump-to-bottom) +bind -T copy-mode MouseDown1Pane select-pane +bind -T copy-mode-vi MouseDown1Pane select-pane |