Created
May 13, 2025 10:07
-
-
Save ekollof/35803a8e5a3e32883902d031d1ca1bc7 to your computer and use it in GitHub Desktop.
my .tmux.conf
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 256colors | |
set -g default-terminal "tmux-256color" | |
set -ga terminal-overrides ",*:Tc" | |
# trans background | |
set-option -g status-style bg=default | |
# workaround for Alacritty opacity issue | |
set -g window-style 'fg=colour250' | |
set -g window-active-style 'fg=colour255' | |
set -g status on | |
set -g status-bg default | |
set -g status-fg colour7 | |
set -g status-left '#[fg=colour16,bg=colour4,bold] #S #[fg=colour4,bg=colour16,nobold]' | |
set -g window-status-format "#[default] #I #[fg=colour240] #[default]#W " | |
set -g window-status-current-format "#[fg=colour16,bg=colour6]#[fg=colour16,bg=colour6,bold] #I #[fg=colour16]#W #[fg=colour6,bg=colour16,nobold]" | |
set -g status-right '#{prefix_highlight} #[fg=colour6,bg=colour16]#[fg=colour16,bg=colour6] #{=21:pane_title} #[fg=colour4,bg=colour6,nobold]#[fg=colour16,bg=colour4] %H:%M ' | |
# Screen prefix | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# Window switching | |
bind -n M-H previous-window | |
bind -n M-L next-window | |
# Renumber windows | |
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 | |
set-option -g status-position top | |
# Splits | |
bind - split-window -v | |
bind | split-window -h | |
# Mouse | |
set -g mouse | |
set-option -g history-limit 10000 | |
# TPM | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
#set -g @plugin 'jimeh/tmux-themepack' | |
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' # status item when prefix pressed | |
set -g @plugin 'wfxr/tmux-fzf-url' # fuzzy select urls in buffer | |
set -g @plugin 'tmux-plugins/tmux-pain-control' # split, navigate,and resize panes | |
#set -g @themepack "powerline/block/gray" | |
# | |
set-window-option -g mode-keys vi | |
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-selection-and-cancel | |
# Source tmux conf | |
bind-key R run-shell ' \ | |
tmux source-file ~/.tmux.conf > /dev/null; \ | |
tmux display-message "sourced tmux.conf"' | |
# Init TPM | |
if "test ! -d ~/.tmux/plugins/tpm" \ | |
"run 'git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm'" | |
run '~/.tmux/plugins/tpm/tpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment