From 9a078798fc6749989a69a2d1c950ccf11da0b95e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 1 Mar 2023 23:45:58 +0100 Subject: tmux: group settings, add separators --- %HOME%/.tmux.conf | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/%HOME%/.tmux.conf b/%HOME%/.tmux.conf index 50f0649..d6a3973 100644 --- a/%HOME%/.tmux.conf +++ b/%HOME%/.tmux.conf @@ -1,3 +1,7 @@ +# ----------------------------------------------------------------------------- +# Sources +# ----------------------------------------------------------------------------- + # [1]: https://wiki.archlinux.org/index.php/tmux # [2]: https://gist.github.com/Lartza/6a7a62466a8a3e436234412d9b1c5066 # [3]: http://mutelight.org/practical-tmux @@ -5,6 +9,10 @@ # [5]: https://github.com/tmux-plugins/tmux-yank # [6]: https://github.com/greymd/dotfiles/blob/333c46dab103d4316a83744dec28605dc2cbc4ab/.tmux.conf +# ----------------------------------------------------------------------------- +# General settings +# ----------------------------------------------------------------------------- + # C-b is hella uncomfortable to press. unbind C-b set -g prefix C-j @@ -42,14 +50,15 @@ set -g display-time 4000 set -g status-interval 5 # The following settings I don't totally understand/need, but they looked -# sensible enough, and they were recommended at least somewhere. +# sensible enough, and they were recommended by at least some of the sources. set -g focus-events on set-window-option -g aggressive-resize on +# ----------------------------------------------------------------------------- # Key bindings -# ------------ +# ----------------------------------------------------------------------------- # X to kill the current session. bind X confirm-before kill-session @@ -86,8 +95,9 @@ bind -r j select-pane -D bind -r k select-pane -U bind -r l select-pane -R -# Copy mode bindings -# ------------------ +# ----------------------------------------------------------------------------- +# Key bindings: copy mode +# ----------------------------------------------------------------------------- # I looked up useful bindings here[2] and there[5]. @@ -111,8 +121,9 @@ if-shell 'uname | grep -q -F Linux && command -v xsel' \ 'source-file ~/.config/tmux/linux.conf' if-shell 'uname | grep -q -F Darwin' 'source-file ~/.config/tmux/macos.conf' -# Appearance -# ---------- +# ----------------------------------------------------------------------------- +# User interface +# ----------------------------------------------------------------------------- set -g status-right "%d %b %H:%M" -- cgit v1.2.3