Files
tmux/.tmux.conf
T
2026-05-31 00:52:48 +00:00

42 lines
1.5 KiB
Bash

#
# .tmux.conf
#
unbind C-b
set -g prefix C-a
###send C-a to programm
bind C-a send-prefix
### quickreload
bind r source-file ~/.tmux.conf \; display "Config reloaded!"
### copy mode
unbind-key -T copy-mode-vi v
bind-key -T copy-mode-vi v \
send-keys -X begin-selection
bind-key -T copy-mode-vi 'C-v' \
send-keys -X rectangle-toggle
bind-key -T copy-mode-vi y \
send-keys -X copy-pipe-and-cancel "pbcopy"
bind-key -T copy-mode-vi MouseDragEnd1Pane \
send-keys -X copy-pipe-and-cancel "pbcopy"
### statusbar
set-option -g status-justify left
set-option -g status-left '#[fg=colour185] #S '
set-option -g status-left-length 16
set-option -g status-bg colour233
# iow #(iostat -s | head -n 4 | tail -n 1 | tr -s " " | cut -d " " -f 6)
#netio #(iftop -t -b -B -n -L 1 -s 1 2>/dev/null | grep "Total send and receive rate" | tr -s " " | cut -d " " -f 6)
set-option -g status-right '#[fg=colour195] #(whoami)@#(hostname) | cpu #(vmstat | tail -n 1 | tr -s " " | cut -f 16 -d " " | awk "{ print 100-\$1 }")% | ram #(free | grep Mem | awk "{print \$3/\$2 * 100.0}" | head -c 2)% | hd #(df -h | grep "/$" | tr -s " " | cut -f5 -d " ") | %a %R #[]'
set-option -g status-right-length 90
set-option -g status-interval 2
set-option -g pane-active-border-style fg=colour246
set-option -g pane-border-style fg=colour238
set-window-option -g window-status-format '#[fg=colour195] #I #W'
set-window-option -g window-status-current-format '#[bg=colour208]#[fg=colour233] #I #W #[fg=colour195]'