Last active
July 13, 2018 10:46
-
-
Save klaytonfaria/e3878f4761eb43e8ab3238ba90d83b5a 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
# General settings { | |
# loud or quiet? | |
set-option -g visual-activity off | |
set-option -g visual-bell off | |
set-option -g visual-silence off | |
set-window-option -g monitor-activity off | |
set-option -g bell-action none | |
# Allows for faster key repetition | |
set -s escape-time 0 | |
# Reload tmux | |
bind-key r source-file ~/.tmux.conf \; display-message " ℹ tmux.conf reloaderd! " | |
# copying and pasting | |
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
# } | |
# The modes { | |
set -g default-terminal "screen-256color" | |
set-option -ga terminal-overrides ",xterm-256color:Tc" | |
setw -g clock-mode-colour colour135 | |
setw -g mode-attr bold | |
setw -g mode-fg colour196 | |
setw -g mode-bg colour238 | |
# } | |
# clear the current pane { | |
bind -n C-k send-keys C-l \; clear-history | |
# } | |
# messaging { | |
set -g message-attr bold | |
set -g message-fg black | |
set -g message-bg yellow | |
set -g message-command-fg blue | |
set -g message-command-bg black | |
set-option -g display-time 2000 | |
# } | |
# window { | |
setw -g mode-bg colour6 | |
setw -g mode-fg colour0 | |
set -g base-index 1 | |
# } | |
# The panes { | |
set -g pane-border-bg colour235 | |
set -g pane-border-fg colour238 | |
set -g pane-active-border-bg colour236 | |
set -g pane-active-border-fg colour51 | |
set -g @resurrect-capture-pane-contents 'on' | |
# } | |
# The statusbar { | |
set -g status-justify left | |
set -g status-bg default | |
set -g status-fg colour12 | |
set -g status-interval 2 | |
set -g status-position top | |
set -g status-bg colour234 | |
set -g status-fg colour137 | |
set -g status-attr dim | |
set -g status-left '' | |
set -g status-interval 2 | |
set -g status-left '#[fg=colour237,bg=colour243,bold] ⇥ #S ' | |
set -g status-left-length 60 | |
set -g status-right '#(cat ~/.thyme-tmux) #[fg=colour238,bold] #{spotify_status} #{spotify_track} - #{spotify_artist} #{prefix_highlight}#[fg=colour237,bg=colour243,bold] %a %d/%m #[fg=colour250,bg=colour237,bold] %H:%M:%S #{cpu_bg_color} #{battery_status_bg} ' | |
set -g status-right-length 170 | |
set -g status-left-length 20 | |
setw -g window-status-current-fg colour81 | |
setw -g window-status-current-bg colour238 | |
setw -g window-status-current-attr bold | |
setw -g window-status-current-format ' #I#[fg=colour250]:#[fg=colour255]#W#[fg=colour50]#F ' | |
setw -g window-status-fg colour138 | |
setw -g window-status-bg colour235 | |
setw -g window-status-attr none | |
setw -g window-status-format ' #I#[fg=colour237]:#[fg=colour250]#W#[fg=colour244]#F ' | |
setw -g window-status-bell-attr bold | |
setw -g window-status-bell-fg colour255 | |
setw -g window-status-bell-bg colour1 | |
# } | |
# Mouse { | |
# <prefix> M -- to turn it off | |
# <prefix> m -- to turn it on | |
if-shell '[[ $(echo "$(tmux -V | cut -d" " -f2) >= 2.1" | bc) -eq 1 ]]' \ | |
'set -g mouse on; bind m set -g mouse on \; display "Mouse ON"; bind M set -g mouse off \; display "Mouse OFF"' \ | |
'set -g mode-mouse on; set -g mouse-resize-pane on; set -g mouse-select-pane on; set -g mouse-select-window on; bind m set -g mode-mouse on \; set -g mouse-resize-pane on \; set -g mouse-select-pane on \; set -g mouse-select-window on \; display "Mouse ON"; bind M set -g mode-mouse off \; set -g mouse-resize-pane off \; set -g mouse-select-pane off \; set -g mouse-select-window off \; display "Mouse OFF"' | |
# } | |
# Plugins { | |
# List of plugins | |
set -g @plugin 'robhurring/tmux-spotify' | |
set -g @plugin 'tmux-plugins/tmux-battery' | |
set -g @plugin 'tmux-plugins/tmux-continuum' | |
set -g @plugin 'tmux-plugins/tmux-copycat' | |
set -g @plugin 'tmux-plugins/tmux-cpu' | |
set -g @plugin 'tmux-plugins/tmux-prefix-highlight' | |
set -g @plugin 'tmux-plugins/tmux-resurrect' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @plugin 'tmux-plugins/tmux-yank' | |
set -g @plugin 'tmux-plugins/tpm' | |
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) | |
run '~/.tmux/plugins/tpm/tpm' | |
# } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment