tmux/.tmux.conf

68 lines
2.1 KiB
Plaintext
Raw Permalink Normal View History

2024-05-15 19:51:14 +00:00
# Plugins
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-resurrect'
#set -g @yank_action 'copy-pipe-no-clear'
# Send Prefix
set-option -g prefix C-a
unbind-key C-a
bind-key C-a send-prefix
# Use Alt-arrow keys to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D
# Shift arrow to switch windows
bind -n S-Left previous-window
bind -n S-Right next-window
bind -n C-Pageup previous-window
bind -n C-Pagedown next-window
# bind h previous-window
# bind l next-window
# Mouse mode
setw -g mouse on
# Set easier window split
bind-key v split-window -h
bind-key h split-window -v
# Easy config reload
bind-key r source-file ~/.tmux.conf \; display-message "~/tmux.conf reloaded."
# Copy
setw -g mode-keys vi
# Status bar settings
set-option -g status on
set-option -g status-interval 1
set-option -g status-justify centre
set-option -g status-keys vi
set-option -g status-position bottom
set-option -g status-style fg=colour136,bg=colour235
set-option -g status-left-length 20
set-option -g status-left-style default
set-option -g status-right-length 140
set-option -g status-right-style bg=black,fg=black
set-option -g status-right "#{cpu_bg_color}CPU: #{cpu_icon} #{cpu_percentage}"
set-option -ag status-right "#[bg=black,fg=black] "
set-option -ag status-right "#{cpu_bg_color}TEMP: #{cpu_temp}"
set-option -ag status-right "#[bg=black,fg=black] "
set-option -ag status-right "#{ram_bg_color}RAM: #{ram_icon} #{ram_percentage}"
set-option -ag status-right "#[fg=red,dim,bg=default] #(uptime | cut -f 4-5 -d ' ' | cut -f 1 -d ',') "
set-option -ag status-right " #[fg=yellow,bg=default]%a %l:%M:%S %p" #date #[default] #[fg=blue]%Y-%m-%d"
set-window-option -g window-status-style fg=colour244
set-window-option -g window-status-style bg=default
set-window-option -g window-status-current-style fg=colour166
set-window-option -g window-status-current-style bg=default
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf)
run ~/.tmux/plugins/tpm3/tpm