Created
April 28, 2026 14:15
-
-
Save sieste/7261edc833cfbdd0fdb690448adfe271 to your computer and use it in GitHub Desktop.
tmux.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| setw -g pane-base-index 1 | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 | |
| setw -g mode-keys vi | |
| setw -g mouse on | |
| setw -g monitor-activity on | |
| bind-key '"' split-window -v -c "#{pane_current_path}" | |
| bind-key % split-window -h -c "#{pane_current_path}" | |
| # Vim style pane selection | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| # Alt-hjkl to navigate windows | |
| bind-key -n M-h previous-window | |
| bind-key -n M-l next-window | |
| bind-key -n M-j last-window | |
| bind-key -n M-k choose-tree -w | |
| # standard applications (mutt, notes, calendar) | |
| bind-key -n M-o new-window | |
| # TODO: configure shortcuts to open/switch to frequently used apps (mutt, calendar, notes) | |
| bind-key -n M-i new-window "nvim -c Calendar" | |
| bind-key -n M-u new-window "mutt -F ~/.mutt/.muttrc-unexe" | |
| bind-key -n M-n new-window "nvim ~/folders/notes/notes.md -S ~/folders/notes/notes_features.lua" | |
| bind-key -n M-a new-window "alsamixer" | |
| # No delay for escape key press | |
| set -sg escape-time 0 | |
| # Reload tmux config | |
| bind r source-file ~/.tmux.conf | |
| # STATUS LINE THEME | |
| set -g status-bg black | |
| set -g status-fg white | |
| set -g window-status-current-style bg=blue,fg=white | |
| set -g status-interval 60 | |
| set -g status-right '#[bg=blue,fg=white] %a %d/%m %H:%M #[default]' | |
| # open choose tree (window list) with windows collapsed | |
| bind-key w choose-tree -w | |
| # PANE BORDER THEME (inactive, active, marked) | |
| setw -g pane-border-status bottom | |
| setw -g pane-border-format '─' | |
| # set -g pane-border-format "#{?pane_marked,#[bg=blue fg=white] [MARKED] #[default],}" | |
| set -g pane-border-format "#{?pane_marked,#[bg=blue fg=white] [MARKED] #[default],}#{?window_zoomed_flag,#[bg=blue fg=white] [ZOOMED] ,}" | |
| # setw -g pane-border-format ' #{pane_current_path} :: #{pane_current_command} ' | |
| # TODO: shorten current path | |
| set -g pane-active-border-style 'bg=red fg=white' | |
| set -g pane-border-style 'bg=black fg=color238' | |
| # enable mouse selection | |
| bind -T copy-mode MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel --clipboard --input" | |
| bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "xsel --clipboard --input" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment