aboutsummaryrefslogtreecommitdiff
path: root/tmux
diff options
context:
space:
mode:
authory-jan137 <yousefjan24000@gmail.com>2026-04-08 10:02:08 +0300
committery-jan137 <yousefjan24000@gmail.com>2026-04-08 10:02:08 +0300
commit9e2709eea53b6fcece8145250e3c86b7d2709dcd (patch)
tree64ae5d2b1376ae7388f4d70c12332a88282f49a1 /tmux
parent1a8104551f8cef0cab3b0108856d77bcb67f0967 (diff)
Add tmux and zsh
Diffstat (limited to 'tmux')
-rw-r--r--tmux/tmux.conf54
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