Update tux mouse & keyboard settings

This commit is contained in:
Georgi Gardev
2016-09-05 20:32:32 +03:00
parent 39ec0b3107
commit 5e728e94ae
+8 -9
View File
@@ -17,14 +17,8 @@ set -sg escape-time 1
set -g base-index 1
setw -g pane-base-index 1
# Configure Mouse
setw -g mode-mouse on
set -g mouse-select-pane on
set -g mouse-resize-pane on
set -g mouse-select-window on
set -g status-utf8 on
setw -g utf8 on
# set -g status-utf8 on
# setw -g utf8 on
# -------------------
# Visual Settings
@@ -58,6 +52,10 @@ set -g window-status-current-format "#[fg=white,bg=colour25,noreverse,bold] #I #
# Custom keybindings
# --------------------
set -g mouse on
bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e'"
setw -g mode-keys vi
bind C-a send-prefix
@@ -108,4 +106,5 @@ bind -r L resize-pane -R 5
bind Escape copy-mode
bind p paste-buffer
bind -t vi-copy 'v' begin-selection
bind C-c run "tmux save-buffer - | xclip -i -sel clipboard > /dev/null"
bind C-c run-shell "bash -c 'tmux show-buffer | reattach-to-user-namespace pbcopy'" \; display 'Copied to clipboard'