irongit

feat(tmux): with alacritty config it's possible to C-i for copy mode

huncholanehuncholaneauthored
parent cf5ced1commit 4772585a3b42f257068e220791d813dcfa2b68a6Browse files

1 file changed, +5 -8

+5-8tmux/tmux.conf
@@ -1,4 +1,4 @@
1-# Fix terminal
1+# fIX TERMINAL
22 set-option -ga terminal-overrides ",xterm-256color:Tc:allow-passthrough"
33 set -g xterm-keys on
44 set -g allow-passthrough on
@@ -13,12 +13,7 @@ bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "wl-copy"
1313 # Style unused terminal panes
1414 set -g window-style 'fg=colour247,bg=colour236'
1515 set -g window-active-style 'fg=colour250,bg=black'
16-
17-# Style active terminal pane
18-set -g pane-border-fg colour250
19-set -g pane-border-bg colour236
20-set -g pane-active-border-fg colour250
21-set -g pane-active-border-bg colour250
16+set -g pane-border-lines "double"
2217
2318 # Vim keys in copy mode
2419 set -g mode-keys vi
@@ -31,11 +26,13 @@ setw -g automatic-rename-format "#{b:pane_current_path}"
3126
3227 # Automatic pane name that also allows custom pane title in the beginning
3328 set -g pane-border-status top
34-setw -g pane-border-format ' #{=/-20/…:pane_title} [#{=/-20/…:pane_current_command}] #(pgrep -P "#{pane_pid}" | tr "\n" " ")#{pane_current_path} #{?alternate_on,<Alt Mode> ,}'
3529
3630 # Rename pane keybinding (yes select-pane is misleading)
3731 bind r command-prompt -I "" "select-pane -T '%%'"
3832
33+# Easier to enter scroll mode
34+bind -n C-0 copy-mode
35+
3936 # Reload
4037 bind R source-file ~/.config/tmux/tmux.conf \; display-message "✅ Reloaded tmux config"
4138