set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.local/share/tmux/plugins' # Use vi keybindings in copy mode set-window-option -g mode-keys vi bind-key -T copy-mode-vi 'v' send -X begin-selection bind-key -T copy-mode-vi 'y' send -X copy-selection # Use C-a as prefix unbind C-b set-option -g prefix C-a bind-key C-a send-prefix # More visual split commands bind | split-window -h -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" unbind '"' unbind % # Allow to use the mouse set -g mouse on # theme set -g @themepack 'powerline/double/blue' # Allow using ctrl + arrow keys set-option -g xterm-keys on # status bar # set -g status-right '#{net_speed} | #{prefix_highlight} #{battery_icon}#{battery_percentage} | %a %h-%d %H:%M' set-window-option -g status-left " #S " set-window-option -g status-right " #{prefix_highlight} \"#(hostname)\" %H:%M %d-%b-%y " set-window-option -g window-status-format " #I: #W " set-window-option -g window-status-current-format " #I: #W " # Set title suffix to "- TMUX" # set-option -g set-titles on # set-option -g set-titles-string '#S: #W - TMUX' # # Smart pane switching with awareness of vim splits and system windows # is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" # bind -n C-Left if-shell "$is_vim" "send-keys C-h" "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh left'" # bind -n C-Down if-shell "$is_vim" "send-keys C-j" "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh down'" # bind -n C-Up if-shell "$is_vim" "send-keys C-k" "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh up'" # bind -n C-Right if-shell "$is_vim" "send-keys C-l" "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh right'" # bind-key -T copy-mode-vi 'C-Left' "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh left'" # bind-key -T copy-mode-vi 'C-Down' "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh down'" # bind-key -T copy-mode-vi 'C-Up' "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh up'" # bind-key -T copy-mode-vi 'C-Right' "run-shell 'sh ~/.config/awesome/awesomewm-vim-tmux-navigator/tmux_focus.sh right'" # Extrakto # set -g @extrakto_split_direction v # set -g @extrakto_split_size 15 # Plugins (Keep this last) set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'christoomey/vim-tmux-navigator' # set -g @plugin 'tmux-plugins/tmux-copycat' # set -g @plugin 'tmux-plugins/tmux-open' # set -g @plugin 'tmux-plugins/tmux-prefix-highlight' # set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-yank' # set -g @plugin 'laktak/extrakto' set -g @plugin 'jimeh/tmux-themepack' run '~/.local/share/tmux/plugins/tpm/tpm' #ZSH set -g default-shell /bin/zsh # colors set-option -sa terminal-overrides ',screen-256color:RGB'