aboutsummaryrefslogtreecommitdiff
path: root/content/notes/tmux-sane-defaults.md
diff options
context:
space:
mode:
authorMitja Felicijan <m@mitjafelicijan.com>2023-07-12 18:35:08 +0200
committerMitja Felicijan <m@mitjafelicijan.com>2023-07-12 18:35:08 +0200
commit23a56bd50b04211da3cab45f72c3390711b2416b (patch)
treeab9a4a0136b4cce06dba7d853e296f682f807dbb /content/notes/tmux-sane-defaults.md
parentcecb4b48a39a3558979b9c4b50e45bf605a3684e (diff)
downloadmitjafelicijan.com-23a56bd50b04211da3cab45f72c3390711b2416b.tar.gz
Moved notes and posts into subfolders
Diffstat (limited to 'content/notes/tmux-sane-defaults.md')
-rw-r--r--content/notes/tmux-sane-defaults.md37
1 files changed, 37 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..e21b62b
--- /dev/null
+++ b/content/notes/tmux-sane-defaults.md
@@ -0,0 +1,37 @@
1---
2title: Sane defaults for tmux with more visible statusbar
3url: tmux-sane-defaults.html
4date: 2023-05-25T12:00:00+02:00
5type: note
6draft: false
7tags: [tmux]
8---
9
10```conf
11# Remap prefix from 'C-b' to 'M-a'.
12unbind C-b
13set-option -g prefix M-a
14bind-key M-a send-prefix
15
16# Split panes using | and -.
17bind | split-window -h
18bind - split-window -v
19unbind '"'
20unbind %
21
22# Start counting windows with 1.
23set-option -g allow-rename on
24set -g base-index 1
25setw -g pane-base-index 1
26
27# Statusbar: purple bg and white fg.
28set -g status-bg '#480b8e'
29set -g status-fg '#ffffff'
30
31# Active window: black bg and white fg.
32set -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).
35set -g mouse off
36```
37