Skip to content

Commit

Permalink
Add binding to toggle tmux pane statuses (#80)
Browse files Browse the repository at this point in the history
* bind helper to toggle pane status

* move color config so all the status stuff can live together
  • Loading branch information
jisantuc authored Nov 6, 2023
1 parent 8b3e124 commit b757f2e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions dotfiles/tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ bind-key -T copy-mode-vi r send-keys -X rectangle-toggle
# Linux, requires xclip
bind -T copy-mode-vi y send -X copy-pipe-and-cancel "xclip -selection c"

# use truecolor
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"

# emacs key bindings in tmux command prompt (prefix + :) are better than
# vi keys, even for vim users
set -g status-keys emacs

# allow for repeat commands (particularly useful for resizing panes)
bind C-b send-prefix

# use truecolor
set -g default-terminal "xterm-256color"
set-option -ga terminal-overrides ",xterm-256color:Tc"

# soften status bar color from harsh green to light gray
set -g status-bg "#62466B"
set -g status-fg '#aaaaaa'
Expand All @@ -34,6 +34,9 @@ set -g pane-border-style fg="#62466B"
set -g pane-active-border-style fg="#62466B"
set -g pane-active-border-style bg=default

# toggle showing pane current commands
bind C-s 'set pane-border-status'

# highlight current window
set-window-option -g window-status-style bg="#62466B"
set-window-option -g window-status-current-style fg="#C7CEDB"
Expand Down

0 comments on commit b757f2e

Please sign in to comment.