Update tmux config to show prefix highlighting
This commit is contained in:
parent
a8d11b14bf
commit
549fc1fcde
1 changed files with 15 additions and 8 deletions
|
@ -7,7 +7,7 @@ set -g prefix C-a
|
||||||
bind C-a send-prefix
|
bind C-a send-prefix
|
||||||
|
|
||||||
# reload config file
|
# reload config file
|
||||||
bind r source-file ~/.config/tmux/tmux.conf \; display-message "tmux configuration reloaded"
|
bind r source-file ~/.config/tmux/tmux.conf \; display-message " ✱ tmux.conf is reloaded"
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
# BEHAVIOUR #
|
# BEHAVIOUR #
|
||||||
|
@ -28,8 +28,8 @@ set -g status-bg black # default background colour
|
||||||
set -g window-status-separator ' ' # status separator - space
|
set -g window-status-separator ' ' # status separator - space
|
||||||
set -g status-left "" # left status bar not used
|
set -g status-left "" # left status bar not used
|
||||||
|
|
||||||
# right status bar - iso8601 date + time
|
# right status bar - prefix/copy status - iso8601 date + time
|
||||||
set -g status-right "#[fg=black,bg=colour6] %y-%m-%d #[bg=black] #[fg=black,bg=colour4] %H:%M "
|
set -g status-right "#{prefix_highlight} #[fg=black,bg=colour6] %y-%m-%d #[bg=black] #[fg=black,bg=colour4] %H:%M "
|
||||||
|
|
||||||
# current window
|
# current window
|
||||||
set -g window-status-current-format "#[fg=black,bg=colour4] #I #[fg=colour4,bg=colour240,bold] #W "
|
set -g window-status-current-format "#[fg=black,bg=colour4] #I #[fg=colour4,bg=colour240,bold] #W "
|
||||||
|
@ -47,6 +47,12 @@ set -g pane-border-bg colour236 # border background colour of inactive pa
|
||||||
set -g message-fg black # foreground colour of messages
|
set -g message-fg black # foreground colour of messages
|
||||||
set -g message-bg colour5 # background colour of messages
|
set -g message-bg colour5 # background colour of messages
|
||||||
|
|
||||||
|
# prefix highlight
|
||||||
|
set -g @prefix_highlight_fg black # highlight foreground
|
||||||
|
set -g @prefix_highlight_bg colour5 # highlight background
|
||||||
|
set -g @prefix_highlight_show_copy_mode on # show when in copy-mode
|
||||||
|
set -g @prefix_highlight_copy_mode_attr fg=black,bg=yellow # copy-mode bg/fg
|
||||||
|
|
||||||
#####################
|
#####################
|
||||||
#TMUX PLUGIN MANAGER#
|
#TMUX PLUGIN MANAGER#
|
||||||
#####################
|
#####################
|
||||||
|
@ -54,11 +60,12 @@ set -g message-bg colour5 # background colour of messages
|
||||||
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins'
|
set-environment -g TMUX_PLUGIN_MANAGER_PATH '~/.config/tmux/plugins'
|
||||||
|
|
||||||
# list of plugins
|
# list of plugins
|
||||||
set -g @tpm_plugins ' \
|
set -g @tpm_plugins ' \
|
||||||
tmux-plugins/tpm \
|
tmux-plugins/tpm \
|
||||||
tmux-plugins/tmux-yank \
|
tmux-plugins/tmux-yank \
|
||||||
tmux-plugins/tmux-sensible \
|
tmux-plugins/tmux-sensible \
|
||||||
tmux-plugins/tmux-pain-control \
|
tmux-plugins/tmux-pain-control \
|
||||||
|
tmux-plugins/tmux-prefix-highlight \
|
||||||
'
|
'
|
||||||
|
|
||||||
# other examples:
|
# other examples:
|
||||||
|
|
Loading…
Reference in a new issue