Last active
September 20, 2021 01:37
-
-
Save suryadana/df5bb58a7e2973d58ef2d9056fd22470 to your computer and use it in GitHub Desktop.
My tmux configure
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
# You probably already put this in | |
unbind C-b | |
set -g prefix C-x | |
bind C-x send-prefix | |
# split panes using | and - | |
bind h split-window -h | |
bind v split-window -v | |
unbind '"' | |
unbind % | |
# switch panes using Alt-arrow without prefix | |
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 | |
# Enable mouse mode (tmux 2.1 and above) | |
set -g mouse on | |
# don't rename windows automatically | |
set-option -g allow-rename off | |
## COLORSCHEME: gruvbox dark | |
set-option -g status "on" | |
# default statusbar colors | |
set-option -g status-bg colour237 #bg1 | |
set-option -g status-fg colour223 #fg1 | |
# pane number display | |
set-option -g display-panes-active-colour colour250 #fg2 | |
set-option -g display-panes-colour colour237 #bg1 | |
# clock | |
set-window-option -g clock-mode-colour colour109 #blue | |
# bell | |
set-window-option -g window-status-bell-style fg=colour235,bg=colour167 #bg, red | |
## Theme settings mixed with colors (unfortunately, but there is no cleaner way) | |
set-option -g status-justify "left" | |
set-option -g status-left-length "80" | |
set-option -g status-right-length "80" | |
set-window-option -g window-status-separator "" | |
set-option -g status-left "#[fg=colour248, bg=colour241] #S #[fg=colour241, bg=colour237, nobold, noitalics, nounderscore]" | |
set-option -g status-right "#[fg=colour239, bg=colour237, nobold, nounderscore, noitalics] Learning is stupid #[fg=colour246,bg=colour239] %Y-%m-%d %H:%M #[fg=colour248, bg=colour239, nobold, noitalics, nounderscore]#[fg=colour237, bg=colour248] #h " | |
set-window-option -g window-status-current-format "#[fg=colour239, bg=colour248, :nobold, noitalics, nounderscore]#[fg=colour239, bg=colour214] #I #[fg=colour239, bg=colour214, bold] #W #[fg=colour214, bg=colour237, nobold, noitalics, nounderscore]" | |
set-window-option -g window-status-format "#[fg=colour237,bg=colour239,noitalics]#[fg=colour223,bg=colour239] #I #[fg=colour223, bg=colour239] #W #[fg=colour239, bg=colour237, noitalics]" | |
# Copy tmux buffer into clipboard | |
bind y run-shell "tmux show-buffer | xclip -sel clip -i > /dev/null" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment