-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtmux.conf
More file actions
53 lines (40 loc) · 1.89 KB
/
Copy pathtmux.conf
File metadata and controls
53 lines (40 loc) · 1.89 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Set correct terminal
set -g default-terminal "screen-256color"
# Set scrollback to 10000 lines
set -g history-limit 10000
# Force a reload of the config file
unbind r
bind r source-file ~/.tmux.conf \; display-message "Config reloaded."
### Status Bar Setup - Start ###
set -g status-justify centre # Center the list of windows
set -g status-utf8 on # utf-8 support for status bar
# Status bar has a dim gray background
set-option -g status-bg colour234
set-option -g status-fg colour0
set -g status-left "#[fg=blue] #H #[fg=black]• #[fg=green]#(acpi -t | awk \'{ print $4\"°C\" }\')#[fg=black] • #[fg=red]Power: #(acpi -V | awk \'NR==1 {print $4}\' | cut -d \",\" -f1) "
set -g status-right "#[fg=black,bright] • #[fg=magenta]#(awk \'{ print $1,$2,$3 }\' </proc/loadavg)#[fg=black] • #[fg=cyan]%I:%M #[default] "
# Disable automatic renaming of window titles based on the running process
# set -g automatic-rename off
# set -g monitor-activity off
set -g message-bg default
### Status Bar Setup - End ###
# Start window numbering at 1
set -g base-index 1
# There is a noticeable delay between two characters in a command sequence for it to recognize the command
# So remove the delay
set -s escape-time 0
# Enable mouse support in ~/.tmux.conf
set-option -g mouse-select-pane on
set-option -g mouse-resize-pane on
set-option -g mouse-select-window on
set-window-option -g mode-mouse on
# Highlight active window
set-window-option -g window-status-current-bg yellow
# Transfer buffer to system clipboard
set-option -g default-command "reattach-to-user-namespace -l zsh"
bind-key C-c run-shell "tmux save-buffer - | reattach-to-user-namespace pbcopy"
# Maximising and Minimising a pane
unbind +
bind + new-window -d -n tmux-zoom 'clear && echo TMUX ZOOM && read' \; swap-pane -s tmux-zoom.0 \; select-window -t tmux-zoom
unbind -
bind - last-window \; swap-pane -s tmux-zoom.0 \; kill-window -t tmux-zoom