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