Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
151 lines (116 sloc) 4.27 KB
# -*- mode: conf -*-
#---------------------------------------------------------------------------------------------------
# Ĝeneralaj
#---------------------------------------------------------------------------------------------------
set -g default-terminal "screen-256color"
set-option -ga terminal-overrides ",screen-256color:Tc"
set -g default-shell $SHELL
set -g prefix C-z
set -g base-index 1
set -g history-limit 100000
set -g mouse on
set -g allow-rename off
unbind C-b
bind C-z send-prefix
bind D detach-client
bind b choose-tree
bind n new-session -c "#{pane_current_path}"
bind @ setw synchronize-panes
bind . source-file ~/.tmux.conf
bind r move-window -r \; setw automatic-rename
bind x kill-pane \; move-window -r
bind & kill-window \; move-window -r
#---------------------------------------------------------------------------------------------------
# Fenestroj
#---------------------------------------------------------------------------------------------------
setw -g pane-base-index 1
setw -g window-active-style 'bg=black'
setw -g window-style 'bg=black'
bind -n C-PPage previous-window
bind -n C-NPage next-window
bind -n S-left swap-window -t -1
bind -n S-right swap-window -t +1
bind -n M-1 select-window -t 1
bind -n M-2 select-window -t 2
bind -n M-3 select-window -t 3
bind -n M-4 select-window -t 4
bind -n M-5 select-window -t 5
bind -n M-6 select-window -t 6
bind -n M-7 select-window -t 7
bind -n M-8 select-window -t 8
bind -n M-9 select-window -t 9
bind c new-window -c "#{pane_current_path}"
bind C new-window -c ~
bind e new-window "e"
bind E new-window "e!"
bind t new-window "sudo htop --sort-key=PERCENT_CPU"
bind T new-window "sudo htop --sort-key=PERCENT_MEM"
bind '"' split-window -v -c "#{pane_current_path}"
bind % split-window -h -c "#{pane_current_path}"
bind Space last-window
#---------------------------------------------------------------------------------------------------
# Paneloj
#---------------------------------------------------------------------------------------------------
bind -n C-M-Up resize-pane -U 20
bind -n C-M-Down resize-pane -D 20
bind -n C-M-Left resize-pane -L 20
bind -n C-M-Right resize-pane -R 20
bind -n C-Left select-pane -t :.-
bind -n C-Right select-pane -t :.+
bind -n C-Up swap-pane -U
bind -n C-Down swap-pane -D
bind -n M-Left select-pane -t :.-
bind -n M-Right select-pane -t :.+
bind -n M-Up swap-pane -U
bind -n M-Down swap-pane -D
bind { swap-pane -U
bind } swap-pane -D
bind 0 select-pane -t 0
bind 1 select-pane -t 1
bind 2 select-pane -t 2
bind 3 select-pane -t 3
bind 4 select-pane -t 4
bind 5 select-pane -t 5
bind 6 select-pane -t 6
bind 7 select-pane -t 7
bind 8 select-pane -t 8
bind 9 select-pane -t 9
bind m command-prompt -p "->" "join-pane -t '%%'" \; move-window -r
bind M command-prompt -p "<-" "join-pane -s '%%'" \; move-window -r
bind h select-pane -m
#---------------------------------------------------------------------------------------------------
# Statbreto
#---------------------------------------------------------------------------------------------------
set -g status-position bottom
set -g status-bg "#3F3F3F"
set -g status-fg default
setw -g window-status-format "#I:#W#F "
setw -g window-status-current-format "#I:#W#F "
setw -g window-status-attr bold
setw -g window-status-fg "#D8D8D8"
setw -g window-status-bg "#3F3F3F"
setw -g window-status-current-attr bold
setw -g window-status-current-fg green
setw -g window-status-current-bg black
set -g status-interval 1
set -g status-left ''
set -g status-left-fg green
set -g status-left-bg black
set -g status-right '#{prefix_highlight}'
set -g status-right-fg green
set -g status-right-bg black
set -g status-right-length 50
set -g pane-border-fg "#3F3F3F"
set -g pane-border-bg black
set -g pane-active-border-fg green
set -g pane-active-border-bg black
#---------------------------------------------------------------------------------------------------
# Kromaĵoj
#---------------------------------------------------------------------------------------------------
set -g @plugin 'tmux-plugins/tpm'
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-prefix-highlight'
set -g @continuum-restore 'on'
run '~/.tmux/plugins/tpm/tpm'