diff options
Diffstat (limited to '.tmux.conf')
-rw-r--r-- | .tmux.conf | 16 |
1 files changed, 10 insertions, 6 deletions
@@ -10,7 +10,11 @@ set -g @plugin 'tmux-plugins/tmux-prefix-highlight' set -g @plugin 'tmux-plugins/tmux-online-status' # set -g @plugin 'tmux-plugins/tmux-sidebar' +set-window-option -g automatic-rename on +set-option -g set-titles on set -g focus-events on +# dont wait for escape +set -sg escape-time 0 set -g default-command /usr/bin/zsh set -g default-shell /usr/bin/zsh @@ -20,6 +24,7 @@ set-option -g prefix C-a set -g status-interval 120 set-option -g history-limit 10000 set-option -g repeat-time 500 +set -g display-time 1000 #prefix highlight settings set -g @prefix_highlight_show_copy_mode 'on' @@ -31,8 +36,8 @@ set -g @prefix_highlight_output_suffix '' #online status options # set -g @online_icon "ok" # set -g @offline_icon "offline!" -set -g @online_icon "#[bg=colour75 fg=colour22]#[bg=colour22] " -set -g @offline_icon "#[bg=colour75 fg=colour1]#[bg=colour1] " +set -g @online_icon "#[bg=colour25 fg=colour22]#[bg=colour22] " +set -g @offline_icon "#[bg=colour25 fg=colour1]#[bg=colour1] " set -g @jump-key 's' @@ -63,7 +68,7 @@ bind -T off F6 \ set -u key-table \;\ refresh-client -S -wg_is_keys_off="#[fg=colour15,bg=colour63,bold]#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'OFF')#[fg=colour22] #{?#{pane_ssh_connected},#[fg=colour63 bg=colour24],#[fg=colour63 bg=colour31]}#[default]" +wg_is_keys_off="#[fg=colour15,bg=colour63,bold]#([ $(tmux show-option -qv key-table) = 'off' ] && echo 'OFF')#[fg=colour24] #{?#{pane_ssh_connected},#[fg=colour63 bg=colour31],#[fg=colour63 bg=colour24]}#[default]" # from christoomey's vim-tmux-nivagator is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" @@ -100,6 +105,7 @@ bind ] paste-buffer bind Space choose-buffer # bind C-l send-keys 'C-l' bind -n C-h clear-history +bind P pipe-pane -o "cat >>~/#W.log" \; display "Toggled logging to ~/#W.log" #move windows # bind-key -n C-S-Left swap-window -t -1 @@ -125,16 +131,14 @@ set -g pane-border-style fg='#0099ff' # message text set -g message-style bg='#44475a',fg='#8be9fd' -#powerline set-option -g status on -#set-option -g status-interval 2 set-option -g status-justify "centre" set-option -g status-left-length 120 set-option -g status-right-length 170 # set-option -g status-left "#{prefix_highlight}$wg_is_keys_off#[fg=colour15 bg=colour22]#U@#H#[fg=colour22 bg=colour148]#(/home/devi/tmux-powerline/powerline.sh left)" # set-option -g status-right "#(/home/devi/tmux-powerline/powerline.sh right)#{online_status}" -set-option -g status-left "#{prefix_highlight}$wg_is_keys_off#{?#{pane_ssh_connected},#[fg=colour15 bg=colour24],#[fg=colour15 bg=colour31]}#U@#H:#{pane_ssh_port}#{?#{pane_ssh_connected},#[fg=colour24 bg=colour61],#[fg=colour31 bg=colour61]}#(/home/devi/scripts/tmux/vcs_info.sh)" +set-option -g status-left "#{prefix_highlight}$wg_is_keys_off#{?#{pane_ssh_connected},#[fg=colour15 bg=colour31],#[fg=colour15 bg=colour24]}#U@#H#{?#{pane_ssh_connected},:#{pane_ssh_port}#[fg=colour31 bg=colour29],#[fg=colour24 bg=colour29]}#(/home/devi/scripts/tmux/vcs_info.sh)" # set-option -g status-left "#{prefix_highlight}$wg_is_keys_off#{?#{pane_ssh_connected},#[fg=colour15 bg=colour31],#[fg=colour15 bg=colour24]}#[fg=colour15 bg=colour31]#U@#H:#{pane_ssh_port}#[fg=colour31 bg=colour61]#(/home/devi/scripts/tmux/vcs_info.sh)" set-option -g status-right "#(/home/devi/scripts/tmux/date.sh)#{online_status}" |