From acf0c8a78c5d47e8e5578a2b68d3d1bd93586871 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Fri, 31 May 2024 11:36:47 -0700 Subject: [PATCH] Fix tmux config to use new syntax --- tmux.conf | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-) diff --git a/tmux.conf b/tmux.conf index 122e961..d3e0bc9 100644 --- a/tmux.conf +++ b/tmux.conf @@ -68,22 +68,17 @@ set-option -ga status-right "#[fg=red]#(~/bin/stardate)" set-option -g status-right-length 30 # Status bar - window status -set-window-option -g window-status-current-bg $TMUX_STATUS_BG -set-window-option -g window-status-current-fg cyan -set-window-option -g window-status-current-attr underscore -set-window-option -g window-status-bg $TMUX_STATUS_BG -set-window-option -g window-status-fg $TMUX_STATUS_FG -set-window-option -g window-status-format "#I.#P:#W#F" set-window-option -g window-status-current-format "#I.#P:#W#F" +set-window-option -g window-status-current-style "fg=cyan bg=$TMUX_STATUS_BG underscore" +set-window-option -g window-status-format "#I.#P:#W#F" +set-window-option -g window-status-style "fg=$TMUX_STATUS_FG bg=$TMUX_STATUS_BG" # Message bar formatting -set-option -g message-bg $TMUX_MESSAGE_BG -set-option -g message-fg $TMUX_MESSAGE_FG -set-option -g message-command-bg $TMUX_MESSAGE_FG -set-option -g message-command-fg $TMUX_MESSAGE_BG +set-option -g message-style "fg=$TMUX_MESSAGE_FG bg=$TMUX_MESSAGE_BG" +set-option -g message-command-style "fg=$TMUX_MESSAGE_BG bg=$TMUX_MESSAGE_FG" # Pane highlighting -set-option -g pane-active-border-fg green +set-option -g pane-active-border-style "fg=green" # Window switching bind-key C-s last-window @@ -110,14 +105,14 @@ bind-key H \ bind-key C-y set-window-option synchronize-panes # Tweak the copy mode bindings -unbind-key -t vi-copy C-e -unbind-key -t vi-copy C-y -unbind-key -t vi-copy Enter -unbind-key -t vi-copy Space -unbind-key -t vi-copy v -bind-key -t vi-copy v begin-selection -bind-key -t vi-copy C-v rectangle-toggle -bind-key -t vi-copy y copy-selection +# unbind-key -t vi-copy C-e +# unbind-key -t vi-copy C-y +# unbind-key -t vi-copy Enter +# unbind-key -t vi-copy Space +# unbind-key -t vi-copy v +# bind-key -t vi-copy v begin-selection +# bind-key -t vi-copy C-v rectangle-toggle +# bind-key -t vi-copy y copy-selection # Resize the panes using vi-style keys bind-key -r h resize-pane -L @@ -126,7 +121,7 @@ bind-key -r k resize-pane -U bind-key -r l resize-pane -R # Allow the escape key to quit the command mode -bind-key -ct vi-edit Escape cancel +# bind-key -ct vi-edit Escape cancel # Clear history # Bash uses C-l to clear the screen, so you can use C-l, M-k to clear the @@ -141,7 +136,7 @@ bind-key D detach-client -P bind-key L choose-session # Allow the escape key to quit the choice window -bind-key -t vi-choice Escape cancel +# bind-key -t vi-choice Escape cancel # Terminator style pane switching # OSX Terminal.app, enable Use option as meta key