Skip to content

Instantly share code, notes, and snippets.

@bechampion
Created March 17, 2017 15:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bechampion/dbb98644e4b6614e6811482ae89a8bfa to your computer and use it in GitHub Desktop.
Save bechampion/dbb98644e4b6614e6811482ae89a8bfa to your computer and use it in GitHub Desktop.
dadada
##start prefix keys
set-option -g prefix C-x
#bind-key C-x,C-b send-prefix
bind-key r source-file ~/.tmux.conf \; display-message "Configuration reloaded"
#select pane by shift arrow
unbind C-Left
unbind C-Right
unbind C-Up
unbind C-Down
bind -n S-Left select-pane -L
bind -n S-Right select-pane -R
bind -n S-Up select-pane -U
bind -n S-Down select-pane -D
#being able to select panes by alt 1-2-3-4
set -g base-index 0
set -g pane-base-index 0
bind -n M-1 select-pane -t 0
bind -n M-2 select-pane -t 1
bind -n M-3 select-pane -t 2
bind -n M-4 select-pane -t 3
bind -n M-w next-window
bind -n M-q previous-window
#bind -n M-5 select-pane -t 5
#bind -n M-q select-window -t 0
#bind -n M-w select-window -t 1
#bind -n M-e select-window -t 2
#resize current pane to a useful space.
bind -n M-r resize-pane -x160 \; display-message "Making pane usable"
bind -n M-R resize-pane -x110
##bind F13 send-prefix
#
###end
###start vimode history and term colors
setw -g mode-keys vi
##set -g default-terminal "xterm-256color"
set -g default-terminal "screen-256color"
set-option -g history-limit 5000
###end
###start copy to clipboard
bind-key -t vi-copy v begin-selection
#bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
bind-key -t vi-copy Enter copy-pipe "xclip"
###end
###start mouse and others
set -g mouse on
###end
###start key binding to move around
bind-key -n C-S-Up resize-pane -U 2
bind-key -n C-S-Down resize-pane -D 2
bind-key -n C-S-Left resize-pane -L 15
bind-key -n C-S-Right resize-pane -R 15
#ctrl to switch words
set-window-option -g xterm-keys on
###end
###start status bar colors and possition
#set-option -g pane-active-border-fg colour4
set-option -g display-time 200
set-option -g pane-active-border-fg colour224
set-option -g pane-active-border-bg red
set-option -g message-bg black
set-option -g message-fg colour168
set-option -g pane-border-fg colour131
set-option -g status-position top # position the status bar at top of screen
##for fancy one
##source '/Users/jgarcia/.vim/bundle/powerline/powerline/bindings/tmux/powerline.conf'
##for non fancy
set-option -g status-position top
set -g status-fg white
set -g status-bg colour235
set -g status-left-length 70
set -g status-right-length 100
set -g status-left '#[fg=brightblue,bg=grey]❐#[fg=white] #S | #h |'
set -g status-right "#[fg=colour202]#(lastad.sh)#[fg=218,noblink,bg=colur235]#[fg=red]#(~/tmux/online.sh)#[fg=green]#(~/tmux/vpn.sh) #[fg=colour218]#(sensors coretemp-isa-000 | grep Physi | awk '{ print $4}')#[fg=colour161] #( free -m | grep Mem | awk '{ print $7 }')#[fg=white] #(cat /proc/loadavg | awk '{ print $1,$2,$3}') #[bg=blue]#[bg=colour235]#[fg=colour160]#[fg=brightblue]| #[fg=yellow]%a %m-%d #[fg=green,bg=black]%H:%M"
#
#
setw -g window-status-format "#[bg=colour235]#[fg=colour240] #W "
setw -g window-status-current-format "#[fg=white,bold]#[bg=red][#W#[fg=colour6]‣#[fg=colour221]#P#[fg=white]]"
set -g status-attr bright
set -g status-left "#[bg=colour235]#[fg=colour221]#{?client_prefix,#[bg=colour161],}#{?client_prefix,#[fg=white],}#S#[bg=colour235]#[fg=magenta]#{?client_prefix,#[fg=colour221],}⌘ #[fg=colour221]#{?client_prefix,#[bg=colour161],}#{?client_prefix,#[fg=white],}#h#[fg=white,bg=black]"
set -g status-justify centre
##clock
set -g clock-mode-colour colour81
##end
##start time settings and selection color
set -sg escape-time 0
set-option -g repeat-time 0
set -wg mode-style bg=brightred,fg=yellow,underscore,bold
###end
###start TPM Pluginx
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-copycat \
'
run-shell '~/.tmux/plugins/tpm/tpm'
#disallow renaming
set-option -g allow-rename off
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment