blob: f23e19d169a5015a85010bdedfe7a3800daa09ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
---
title: Sane defaults for tmux with more visible statusbar
url: tmux-sane-defaults.html
date: 2023-05-25
type: notes
draft: false
tags: [tmux]
---
```conf
# Remap prefix from 'C-b' to 'M-a'.
unbind C-b
set-option -g prefix M-a
bind-key M-a send-prefix
# Split panes using | and -.
bind | split-window -h
bind - split-window -v
unbind '"'
unbind %
# Start counting windows with 1.
set-option -g allow-rename on
set -g base-index 1
setw -g pane-base-index 1
# Statusbar: purple bg and white fg.
set -g status-bg '#480b8e'
set -g status-fg '#ffffff'
# Active window: black bg and white fg.
set -g window-status-current-format "#[fg=#ffffff]#[bg=#111111]#[fg=#ffffff]#[bg=#111111] #I:#W #[fg=#ffffff]#[bg=#111111]"
# Disable mouse mode (tmux 2.1 and above).
set -g mouse off
```
|