Tmux configuration with dimming
This commit is contained in:
parent
30530c9759
commit
046eb4089e
5 changed files with 68 additions and 12 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#Make nicer tmux motion keys that work with vim as well
|
||||
set -g xterm-keys on
|
||||
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \
|
||||
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||
| grep -iqE '^[^TXZ ]+ +(\\S+\/)?g?(view|n?vim?x?)(diff)?$'"
|
||||
|
||||
bind-key -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
|
||||
bind-key -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
|
||||
|
|
@ -70,3 +71,11 @@ setw -g window-status-bell-style 'fg=yellow bg=red bold'
|
|||
|
||||
# messages
|
||||
set -g message-style 'fg=white bg=black'
|
||||
|
||||
# Pass through shift+enter
|
||||
set -g extended-keys on
|
||||
set -g extended-keys-format csi-u
|
||||
|
||||
# Dim inactive panes
|
||||
set -g window-style 'fg=white,bg=gray'
|
||||
set -g window-active-style 'fg=white,bg=black'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue