From 96011f77154589c1713e2a41f9fa6b56ea90158b Mon Sep 17 00:00:00 2001 From: VectorKappa Date: Tue, 20 Oct 2020 23:42:39 +0200 Subject: [PATCH] 1.4.0 Changed some tmux files --- tmux/.tmux.conf | 108 ++++++------------------------------------------ 1 file changed, 12 insertions(+), 96 deletions(-) diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index d8eb3b0..127bdc2 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -8,12 +8,6 @@ # Make a new session, all you need is to run tmux a all the time then new-session -# Make window index start at 1 -set -g base-index 1 - -# Make pane index start at 1 -setw -g pane-base-index 1 - # Remove delay when sending commands # (default is 500 milliseconds) set -sg escape-time 1 @@ -35,14 +29,10 @@ set -g history-limit 30000 # | Key Mappings | # ---------------------------------------------------------------------- -# Change the key combination for the PREFIX key to `ctrl-a` -set -g prefix C-a -unbind-key C-b - # Make tmux send the PREFIX to an application running # within tmux simply by pressing PREFIX key twice -bind C-a send-prefix -bind a send-prefix +bind C-b send-prefix +bind b send-prefix # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -52,7 +42,7 @@ setw -g mode-keys vi # Remap the copy & paste keys to work as in vim unbind [ bind Escape copy-mode -# use P instead of p because of screen compatibility + unbind P bind P paste-buffer bind -t vi-copy 'v' begin-selection @@ -105,7 +95,7 @@ set -g status-justify left set -g status-left-length 50 set -g status-left " %R | " # └─ current time -set -g status-right " #S " +set -g status-right " #{prefix_highlight} | #S " # └─ current session name # ---------------------------------------------------------------------- @@ -152,88 +142,14 @@ set-window-option -g clock-mode-colour colour64 #green # compatiblity with older tmux versions #set-window-option -g window-status-bell-style fg=colour235,bg=colour160 #base02, red -# ---------------------------------------------------------------------- -# | Compatiblity with screen | -# ---------------------------------------------------------------------- +# Plugins +set -g @plugin 'tmux-plugins/tpm' +set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-resurrect' +set -g @plugin 'tmux-plugins/tmux-continuum' +set -g @plugin 'tmux-plugins/tmux-prefix-highlight' -# lockscreen ^X x -unbind ^X -bind ^X lock-server -unbind x -bind x lock-server - -# screen ^C c -unbind ^C -bind ^C new-window -unbind c -bind c new-window - -# detach ^D d -unbind ^D -bind ^D detach - -# displays * -unbind * -bind * list-clients - -# next ^@ ^N sp n -unbind ^@ -bind ^@ next-window -unbind ^N -bind ^N next-window -unbind " " -bind " " next-window -unbind n -bind n next-window - -# title A -unbind A -bind A command-prompt "rename-window %%" - -# other ^A -unbind ^A -bind ^A last-window - -# prev ^H ^P p ^? -unbind ^H -bind ^H previous-window -unbind ^P -bind ^P previous-window -unbind p -bind p previous-window -unbind BSpace -bind BSpace previous-window - -# windows ^W w -unbind ^W -bind ^W list-windows -unbind w -bind w list-windows - -# quit \ -unbind '\' -bind '\' confirm-before "kill-server" - -# kill K k -unbind K -bind K confirm-before "kill-window" -unbind k -bind k confirm-before "kill-window" - -# redisplay ^L l -unbind ^L -bind ^L refresh-client -unbind l -bind l refresh-client - -# :kB: focus up -unbind Tab -bind Tab select-pane -t:.+ -unbind BTab -bind BTab select-pane -t:.- - -# " windowlist -b -unbind '"' -bind '"' choose-window +set -g @continuum-restore 'on' +run '~/.tmux/plugins/tpm/tpm' \ No newline at end of file