diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2024-03-10 14:59:14 +0100 |
| commit | 1100562e29f6476448b656dbddd4cf22505523f6 (patch) | |
| tree | 442eec492199104bd49dfd74474ce89ade8fcac9 /content/notes/2023-05-25-tmux-sane-defaults.md | |
| parent | a40d80be378e46a6c490e1b99b0d8f4acd968503 (diff) | |
| download | mitjafelicijan.com-1100562e29f6476448b656dbddd4cf22505523f6.tar.gz | |
Move back to JBMAFP
Diffstat (limited to 'content/notes/2023-05-25-tmux-sane-defaults.md')
| -rw-r--r-- | content/notes/2023-05-25-tmux-sane-defaults.md | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/content/notes/2023-05-25-tmux-sane-defaults.md b/content/notes/2023-05-25-tmux-sane-defaults.md new file mode 100644 index 0000000..2840af8 --- /dev/null +++ b/content/notes/2023-05-25-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-25T12:00:00+02:00 | ||
| 5 | type: note | ||
| 6 | draft: false | ||
| 7 | --- | ||
| 8 | |||
| 9 | ```conf | ||
| 10 | # Remap prefix from 'C-b' to 'M-a'. | ||
| 11 | unbind C-b | ||
| 12 | set-option -g prefix M-a | ||
| 13 | bind-key M-a send-prefix | ||
| 14 | |||
| 15 | # Split panes using | and -. | ||
| 16 | bind | split-window -h | ||
| 17 | bind - split-window -v | ||
| 18 | unbind '"' | ||
| 19 | unbind % | ||
| 20 | |||
| 21 | # Start counting windows with 1. | ||
| 22 | set-option -g allow-rename on | ||
| 23 | set -g base-index 1 | ||
| 24 | setw -g pane-base-index 1 | ||
| 25 | |||
| 26 | # Statusbar: purple bg and white fg. | ||
| 27 | set -g status-bg '#480b8e' | ||
| 28 | set -g status-fg '#ffffff' | ||
| 29 | |||
| 30 | # Active window: black bg and white fg. | ||
| 31 | set -g window-status-current-format "#[fg=#ffffff]#[bg=#111111]#[fg=#ffffff]#[bg=#111111] #I:#W #[fg=#ffffff]#[bg=#111111]" | ||
| 32 | |||
| 33 | # Disable mouse mode (tmux 2.1 and above). | ||
| 34 | set -g mouse off | ||
| 35 | ``` | ||
| 36 | |||
