aboutsummaryrefslogtreecommitdiff
path: root/config/tmux
diff options
context:
space:
mode:
authorRubén Beltrán del Río <jj@r.bdr.sh>2026-03-15 21:41:58 +0100
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-03-15 22:20:01 +0100
commite2582f8649e9e67f02210f659b69523c46003087 (patch)
treed7e87b1993e543bcf83345bf584ce3706b3fd1f8 /config/tmux
parent68fc4436c2565ff31f1499d868ac71bc560121ee (diff)
Simplify installation
Diffstat (limited to 'config/tmux')
-rw-r--r--config/tmux/tmux.conf63
1 files changed, 63 insertions, 0 deletions
diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf
new file mode 100644
index 0000000..c319f99
--- /dev/null
+++ b/config/tmux/tmux.conf
@@ -0,0 +1,63 @@
+# Increase the scrollback
+set -g history-limit 5000
+
+# Screen-like prefix.
+set -g prefix C-a
+bind-key C-a last-window
+bind-key a send-prefix
+
+# Better bindings for window split
+unbind % # Remove default binding since we’re replacing
+bind | split-window -h
+bind - split-window -v
+
+# Customize the status bars.
+set-option -g status-style bg=default
+set -g status-fg colour232
+set -g status-left-length 24
+set -g status-left '#[fg=green]#[fg=colour232, bg=green]#S#[fg=green, bg=default] #[default]'
+setw -g window-status-current-format '#[fg=magenta]#[fg=white, bg=magenta]#{window_index}:#{window_name}#[fg=magenta, bg=default]#[default]'
+setw -g window-status-format '#[fg=white]#[fg=colour232, bg=white]#{window_index}:#{window_name}#[fg=white, bg=default]#[default]'
+set -g status-right '#[fg=green]#[fg=colour232, bg=green]#(bash ~/.dotfiles/tmux-segments/short-uptime)#[fg=green, bg=default] '
+set -g status-right-length 70
+
+# Better powerline highlighting.
+set-window-option -g window-status-activity-style bold,underscore
+
+# Set Activity monitoring.
+setw -g monitor-activity on
+set -g visual-activity on
+
+# Vi keys in copy mode.
+setw -g mode-keys vi
+bind -r k run-shell 'tmux select-pane -U'
+bind -r j run-shell 'tmux select-pane -D'
+bind -r h run-shell 'tmux select-pane -L'
+bind -r l run-shell 'tmux select-pane -R'
+
+# Popup window
+bind -r ` display-popup -b heavy -E -w 60% -h 60% -S fg=blue -T '#[bold]#[reverse]#{?window_zoomed_flag,Z:,}UTILITY#[default]'
+
+# Mouse Mode
+set -g mouse on
+
+# Set color mode.
+set -g default-terminal "xterm-256color"
+set-option -ga terminal-overrides ",xterm-256color:Tc"
+
+# Pane Style
+set -g pane-border-status top
+set -g pane-active-border-style fg=green
+set -g pane-border-format '#[bold]#[reverse]#{?window_zoomed_flag,Z:,}#{pane_current_command}#[default]'
+set -g pane-border-lines double
+set -g pane-scrollbars modal
+set -g pane-scrollbars-style fg=blue,bg=lightgray
+
+set-hook -g after-resize-pane 'if -F "#{window_zoomed_flag}" "set pane-active-border-style fg=red" "set pane-active-border-style fg=green"'
+
+# Terminal Title
+set -g set-titles on
+set -g set-titles-string '󰝘 #{session_name}'
+
+# Clock
+set -g clock-mode-style 24-with-seconds