void/tmux/.tmux.conf

31 lines
1.2 KiB
Plaintext

bind -n C-k kill-window
bind -n C-n new-window
bind -n C-t command-prompt -p "New title:" "rename-window '%%'"
bind -n C-M-t command-prompt -p "New session name:" "rename-session '%%'"
bind -n C-M-Left switch-client -n
bind -n C-M-Right switch-client -p
bind -n C-Left previous-window
bind -n C-Right next-window
bind -n C-S-Left swap-window -t -1 \; previous-window
bind -n C-S-Right swap-window -t +1 \; next-window
bind -n C-Up split-window -h
bind -n C-Down split-window -v
bind -n C-S-Up select-pane -t :.+
bind -n C-S-Down select-pane -t :.-
set -g mouse on
set -g status-interval 3
set -g status-style bg=black
set -g status-right-length 100
set -g status-right "#[fg=yellow]#H#[default] | #[fg=cyan]Disk:#[default] #(df -h | grep '/dev/sda2' | awk '{printf \"%3.0f%\", $5}') | #[fg=cyan]CPU: #[default]#(top -bn1 | grep 'Cpu(s)' | awk '{printf \"%3.0f%\", $2 + $4}') | #[fg=cyan]MEM: #[default]#(free | awk '/^Mem/ {printf \"%3.0f%\", $3/$2 * 100.0}') | %I:%M"
setw -g window-status-current-style fg=cyan,bg=default
setw -g window-status-activity-style fg=yellow,bg=default
setw -g window-status-style fg=grey,bg=black
setw -g window-status-format "#I: #W"
setw -g window-status-current-format "#[bold]#I: #W"