Not for normies
feat(tmux): with alacritty config it's possible to C-i for copy mode
1 file changed, +5 -8
+5-8tmux/tmux.conf
| @@ -1,4 +1,4 @@ | ||
| 1 | -# Fix terminal | |
| 1 | +# fIX TERMINAL | |
| 2 | 2 | set-option -ga terminal-overrides ",xterm-256color:Tc:allow-passthrough" |
| 3 | 3 | set -g xterm-keys on |
| 4 | 4 | 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" | ||
| 13 | 13 | # Style unused terminal panes |
| 14 | 14 | set -g window-style 'fg=colour247,bg=colour236' |
| 15 | 15 | 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" | |
| 22 | 17 | |
| 23 | 18 | # Vim keys in copy mode |
| 24 | 19 | set -g mode-keys vi |
| @@ -31,11 +26,13 @@ setw -g automatic-rename-format "#{b:pane_current_path}" | ||
| 31 | 26 | |
| 32 | 27 | # Automatic pane name that also allows custom pane title in the beginning |
| 33 | 28 | 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> ,}' | |
| 35 | 29 | |
| 36 | 30 | # Rename pane keybinding (yes select-pane is misleading) |
| 37 | 31 | bind r command-prompt -I "" "select-pane -T '%%'" |
| 38 | 32 | |
| 33 | +# Easier to enter scroll mode | |
| 34 | +bind -n C-0 copy-mode | |
| 35 | + | |
| 39 | 36 | # Reload |
| 40 | 37 | bind R source-file ~/.config/tmux/tmux.conf \; display-message "✅ Reloaded tmux config" |
| 41 | 38 |