Skip to content

Instantly share code, notes, and snippets.

@webgago
Created September 4, 2023 06:46
Show Gist options
  • Save webgago/c0289d6a76b55c9c93bac76d4aca7c7e to your computer and use it in GitHub Desktop.
Save webgago/c0289d6a76b55c9c93bac76d4aca7c7e to your computer and use it in GitHub Desktop.
set-option -sa terminal-overrides ",xterm*:Tc"
set -g mouse on
set -g mode-keys vi
# Set prefix
unbind C-b
set -g prefix §
bind § send-prefix
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set-window-option -g pane-base-index 1
set-option -g renumber-windows on
# Status position
set-option -g status-position top
# Use Alt-arrow keys without prefix key 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
# Theme
set -g @plugin 'catppuccin/tmux'
set -g @catppuccin_flavour 'mocha' # latte, frappe, macchiato, mocha
set -g @catppuccin_powerline_icons_theme_enabled on
set -g @catppuccin_l_left_separator ""
set -g @catppuccin_l_right_separator ""
set -g @catppuccin_r_left_separator ""
set -g @catppuccin_r_right_separator ""
set -g @catppuccin_date_time "%a%e %h %H:%M"
set -g @catppuccin_window_tabs_enabled on
# Plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-cpu'
set -g @plugin 'thewtex/tmux-mem-cpu-load'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'tmux-plugins/tmux-copycat'
run '~/.tmux/plugins/tpm/tpm'
set -g set-clipboard on
set -g status-left "#S #[fg=green,bg=black]#($TMUX_PLUGIN_MANAGER_PATH/tmux-mem-cpu-load/tmux-mem-cpu-load --powerline-left --interval 2)#[default]"
set -g status-interval 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment