1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

132 lines
7.2 KiB

# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ ___ ___ ___ ___ ║
# ║ /\ \ /\__\ /\__\ |\__\ ║
# ║ \:\ \ /::| | /:/ / |:| | ║
# ║ \:\ \ /:|:| | /:/ / |:| | ║
# ║ /::\ \ /:/|:|__|__ /:/ / ___ |:|__|__ ║
# ║ /:/\:\__\ /:/ |::::\__\ /:/__/ /\__\ ____/::::\__\ ║
# ║ /:/ \/__/ \/__/~~/:/ / \:\ \ /:/ / \::::/~~/~ ║
# ║ /:/ / /:/ / \:\ /:/ / ~~|:|~~| ║
# ║ \/__/ /:/ / \:\/:/ / |:| | ║
# ║ /:/ / \::/ / |:| | ║
# ║ \/__/ \/__/ \|__| ║
# ║ 3.1 ║
# ║ ║
# ║ xn--gckvb8fzb.com * github.com/mrusme * marius@xn--gckvb8fzb.com ║
# ║ ║
# ╚════════════════════════════════════════════════════════════════════════════╝
set -sg escape-time 0
unbind C-b
set-option -g prefix C-a
set-option -g update-environment "DISPLAY WAYLAND_DISPLAY SWAYSOCK SSH_AUTH_SOCK"
bind-key C-a send-prefix
# bind -n C-k send-keys -R
bind r source-file ~/.tmux.conf
# Enable Home / End key
bind -n End send-key C-e
bind -n Home send-key C-a
set -g default-terminal "screen-256color"
setw -g mode-keys vi
set-option -g history-limit 5000
# https://gist.github.com/mrusme/9d402b121f20ebe479588ab90de9e93f
bind ? send-keys -t.- 'cat ~/.tmux.cheatsheet' Enter
# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ Window/Pane management ║
# ╚════════════════════════════════════════════════════════════════════════════╝
bind = split-window -h
bind - split-window -v
unbind '"'
unbind %
unbind C-k
bind Left select-pane -L
bind Right select-pane -R
bind Up select-pane -U
bind Down select-pane -D
bind h select-pane -L
bind l select-pane -R
bind k select-pane -U
bind j select-pane -D
bind . select-pane -t :.+
bind H select-pane -m \; select-pane -L \; swap-pane \; select-pane -M\; select-pane -L
bind L select-pane -m \; select-pane -R \; swap-pane \; select-pane -M\; select-pane -R
bind K select-pane -m \; select-pane -U \; swap-pane \; select-pane -M\; select-pane -U
bind J select-pane -m \; select-pane -D \; swap-pane \; select-pane -M\; select-pane -D
bind C-c setw synchronize-panes
# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ Mouse ║
# ╚════════════════════════════════════════════════════════════════════════════╝
set -g mouse on
# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ Activity/bell ║
# ╚════════════════════════════════════════════════════════════════════════════╝
# set-option -g visual-activity on
# set-option -g visual-bell on
# set-option -g visual-silence off
# set-window-option -g monitor-activity off
# set-option -g bell-action none
# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ Theme/Style ║
# ╚════════════════════════════════════════════════════════════════════════════╝
setw -g clock-mode-colour colour15
setw -g mode-style fg=colour15,bg=default,none
set -g pane-border-style fg=colour0,bg=default
set -g pane-active-border-style fg=colour207,bg=default
# set -g status-interval 1
set -g status-position bottom
set -g status-justify centre
set -g status-style fg=colour137,bg=default,dim
set -g status-interval 30
set -g status-left "#[fg=colour15]#(date +"%H:%M")#[fg=colour4] hrs "
set -ag status-left "#[fg=colour15]#(date +"%d/%m")#[fg=colour4] #(date +"%Y") "
set -g status-left-length 22
set -g status-right '#[fg=colour15]#{cpu_temp} #[fg=colour4]#{gpu_temp} '
set -ag status-right '#[fg=colour15]#{battery_percentage} #[fg=colour4]#{battery_remain} '
set -ag status-right '#[fg=colour15]#W #(if echo #W | grep -q "ssh"; then echo "#[fg=colour9]REMOTE HOST"; else echo "#[fg=colour4]#H"; fi)'
set -g status-right-length 58
setw -g window-status-current-style fg=colour0,bg=default,none
set -g window-status-current-format "#[fg=colour15] #W"
setw -g window-status-style fg=colour10,bg=default,none
set -g window-status-format "#[fg=colour4] #W"
setw -g window-status-bell-style fg=colour15,bg=default,none
set -g message-style fg=colour0,bg=colour10,none
# ╔════════════════════════════════════════════════════════════════════════════╗
# ║ Plugins ║
# ╚════════════════════════════════════════════════════════════════════════════╝
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-battery'
set -g @plugin 'tmux-plugins/tmux-cpu'
run -b '~/.tmux/plugins/tpm/tpm'