+ corrected tmux and vim colors, scroll and copy to clipboard
This commit is contained in:
55
.tmux.conf
55
.tmux.conf
@ -18,33 +18,20 @@ set -g @plugin 'knakayama/tmux-newline-detector'
|
|||||||
set -g @plugin 'anghootys/tmux-ip-address'
|
set -g @plugin 'anghootys/tmux-ip-address'
|
||||||
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
|
||||||
|
|
||||||
# List of disabled plugins on some reasons
|
|
||||||
#set -g @plugin 'thewtex/tmux-mem-cpu-load'
|
|
||||||
#set -g @plugin 'b0o/tmux-autoreload'
|
|
||||||
#set -g @plugin 'ofirgall/tmux-window-name'
|
|
||||||
#set -g @plugin 'tmux-plugins/tmux-sidebar'
|
|
||||||
#set -g @treemux-tree-nvim-init-file '~/.tmux/plugins/treemux/configs/treemux_init.lua'
|
|
||||||
#set -g @plugin 'kiyoon/treemux'
|
|
||||||
#set -g @plugin 'leighmcculloch/tmux-colours-superhero'
|
|
||||||
#run-shell "powerline-daemon -q"
|
|
||||||
#source "/usr/share/powerline/bindings/tmux/powerline.conf"
|
|
||||||
|
|
||||||
## Plugin configuration
|
## Plugin configuration
|
||||||
set -g @continuum-restore 'on'
|
set -g @continuum-restore 'on'
|
||||||
set -g @continuum-save-interval '5'
|
set -g @continuum-save-interval '5'
|
||||||
set -g @resurrect-capture-pane-contents 'on'
|
set -g @resurrect-capture-pane-contents 'on'
|
||||||
set -g @yank_selection 'primary'
|
set -g @yank_selection 'primary'
|
||||||
|
set -g @yank_selection_mouse 'clipboard'
|
||||||
set -g @man-size '40%'
|
set -g @man-size '40%'
|
||||||
set -g @man-orientation 'h'
|
set -g @man-orientation 'h'
|
||||||
set -g @man-shell-interactive 'off'
|
set -g @man-shell-interactive 'off'
|
||||||
#set-option -g @tmux-autoreload-entrypoints '~/.tmux.conf'
|
|
||||||
#set -g @tmux-autoreload-quiet 1
|
|
||||||
#set -g @sidebar-tree-position 'right'
|
|
||||||
|
|
||||||
# True colors (via: https://jdhao.github.io/2018/10/19/tmux_nvim_true_color/ )
|
# Tmux system configuration
|
||||||
set -g default-terminal "screen-256color"
|
set-option -gq display-time "2600"
|
||||||
# tell Tmux that outside terminal supports true color
|
|
||||||
set -ag terminal-overrides ",alacritty:RGB"
|
set -g default-terminal "xterm-256color"
|
||||||
|
|
||||||
# --- START colours superhero ---
|
# --- START colours superhero ---
|
||||||
|
|
||||||
@ -57,7 +44,7 @@ set -g status-interval 1
|
|||||||
# Status bar
|
# Status bar
|
||||||
# not suppoerted option
|
# not suppoerted option
|
||||||
#set -g status-utf8 on
|
#set -g status-utf8 on
|
||||||
set -g status-bg default
|
set -g status-bg black
|
||||||
set -g status-fg white
|
set -g status-fg white
|
||||||
|
|
||||||
# Status bar - left side
|
# Status bar - left side
|
||||||
@ -88,24 +75,6 @@ set-option -g display-panes-colour colour240
|
|||||||
|
|
||||||
# --- END colours superhero ---
|
# --- END colours superhero ---
|
||||||
|
|
||||||
## Windows style
|
|
||||||
#set-option -g status-style fg=yellow,bg=default
|
|
||||||
#set-window-option -g pane-active-border-style ''
|
|
||||||
|
|
||||||
## A bit more space in right status bar
|
|
||||||
#set -g status-right-length 50
|
|
||||||
|
|
||||||
## Windows status style
|
|
||||||
#set -g status-style "bg=#4c566a,fg=#eceff4"
|
|
||||||
#set -g status-left "#[fg=#bf616a,bg=#ebcb8b,bold] #S "
|
|
||||||
#set -g status-right "#{prefix_highlight} #[bg=#a3be8c,fg=black,bold] #U #[bg=#ebcb8b,fg=#bf616a,bold] #h "
|
|
||||||
#setw -g window-status-format "#[fg=#81a1c1,bg=#4c566a] #I:#W "
|
|
||||||
#setw -g window-status-current-format "#[fg=#2e3440,bg=#81a1c1,bold] #I:#W "
|
|
||||||
#setw -g window-status-separator ""
|
|
||||||
|
|
||||||
## Rename windows to fit current application
|
|
||||||
#setw -g automatic-rename on
|
|
||||||
|
|
||||||
# Use zsh regardless of default settings
|
# Use zsh regardless of default settings
|
||||||
if-shell 'test -x /usr/bin/zsh' 'set-option -g default-shell /usr/bin/zsh'
|
if-shell 'test -x /usr/bin/zsh' 'set-option -g default-shell /usr/bin/zsh'
|
||||||
|
|
||||||
@ -118,14 +87,10 @@ bind -n M-Down select-pane -D
|
|||||||
## Mouse On by default
|
## Mouse On by default
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
# PageUp/PageDown works for scrolling
|
## Scoll for vim
|
||||||
#bind-key -T root PPage if-shell -F "#{alternate_on}" "send-keys PPage" "copy-mode -e; send-keys PPage"
|
bind -n WheelUpPane if "echo #{pane_current_command} | grep vim" "select-pane -t =; send-keys -N 4 Up" "select-pane -t =; copy-mode -e; send-keys -M"
|
||||||
#bind-key -T copy-mode-vi PPage send-keys -X page-up
|
bind -n WheelDownPane if "echo #{pane_current_command} | grep vim" "select-pane -t =; send-keys -N 4 Down" "select-pane -t =; send-keys -M"
|
||||||
#bind-key -T copy-mode-vi NPage send-keys -X page-down
|
# And additional scrolling things for tmux copy-mode
|
||||||
|
|
||||||
# Same for the mouse scroll button
|
|
||||||
bind-key -T root WheelUpPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; copy-mode -e; send-keys -M"
|
|
||||||
bind-key -T root WheelDownPane if-shell -F -t = "#{alternate_on}" "send-keys -M" "select-pane -t =; send-keys -M"
|
|
||||||
bind-key -T copy-mode-vi WheelUpPane send-keys -X halfpage-up
|
bind-key -T copy-mode-vi WheelUpPane send-keys -X halfpage-up
|
||||||
bind-key -T copy-mode-vi WheelDownPane send-keys -X halfpage-down
|
bind-key -T copy-mode-vi WheelDownPane send-keys -X halfpage-down
|
||||||
|
|
||||||
|
1
.vimrc
1
.vimrc
@ -4,6 +4,7 @@ execute pathogen#infect()
|
|||||||
" https://github.com/altercation/vim-colors-solarized
|
" https://github.com/altercation/vim-colors-solarized
|
||||||
syntax enable
|
syntax enable
|
||||||
set background=dark
|
set background=dark
|
||||||
|
let g:solarized_termcolors=256
|
||||||
colorscheme solarized
|
colorscheme solarized
|
||||||
|
|
||||||
" https://vcs.wpstudio.ru/wpstudio/autodeploy
|
" https://vcs.wpstudio.ru/wpstudio/autodeploy
|
||||||
|
Reference in New Issue
Block a user