diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-25 14:43:12 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2023-05-25 14:43:12 +0200 |
| commit | 09877792588ca7a6b7c69a557a9af0730fb6a380 (patch) | |
| tree | d3e0187a20a5ed298de151a2e6ee58b528baef51 /content/notes/tmux-sane-defaults.md | |
| parent | fe2e0ab47508f37f3a93bfe64c366ff5b4e29255 (diff) | |
| download | mitjafelicijan.com-09877792588ca7a6b7c69a557a9af0730fb6a380.tar.gz | |
Note: Renamed tmux config to sane defaults
Diffstat (limited to 'content/notes/tmux-sane-defaults.md')
| -rw-r--r-- | content/notes/tmux-sane-defaults.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/content/notes/tmux-sane-defaults.md b/content/notes/tmux-sane-defaults.md new file mode 100644 index 0000000..f23e19d --- /dev/null +++ b/content/notes/tmux-sane-defaults.md | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | --- | ||
| 2 | title: Sane defaults for tmux with more visible statusbar | ||
| 3 | url: tmux-sane-defaults.html | ||
| 4 | date: 2023-05-25 | ||
| 5 | type: notes | ||
| 6 | draft: false | ||
| 7 | tags: [tmux] | ||
| 8 | --- | ||
| 9 | |||
| 10 | ```conf | ||
| 11 | # Remap prefix from 'C-b' to 'M-a'. | ||
| 12 | unbind C-b | ||
| 13 | set-option -g prefix M-a | ||
| 14 | bind-key M-a send-prefix | ||
| 15 | |||
| 16 | # Split panes using | and -. | ||
| 17 | bind | split-window -h | ||
| 18 | bind - split-window -v | ||
| 19 | unbind '"' | ||
| 20 | unbind % | ||
| 21 | |||
| 22 | # Start counting windows with 1. | ||
| 23 | set-option -g allow-rename on | ||
| 24 | set -g base-index 1 | ||
| 25 | setw -g pane-base-index 1 | ||
| 26 | |||
| 27 | # Statusbar: purple bg and white fg. | ||
| 28 | set -g status-bg '#480b8e' | ||
| 29 | set -g status-fg '#ffffff' | ||
| 30 | |||
| 31 | # Active window: black bg and white fg. | ||
| 32 | set -g window-status-current-format "#[fg=#ffffff]#[bg=#111111]#[fg=#ffffff]#[bg=#111111] #I:#W #[fg=#ffffff]#[bg=#111111]" | ||
| 33 | |||
| 34 | # Disable mouse mode (tmux 2.1 and above). | ||
| 35 | set -g mouse off | ||
| 36 | ``` | ||
