tmux: improve status-line
This commit is contained in:
parent
7cd9f49f7f
commit
ffada69798
1 changed files with 43 additions and 59 deletions
|
@ -35,7 +35,7 @@ set -g prefix C-space
|
|||
################################################################################
|
||||
unbind C-b
|
||||
bind C-space send-prefix
|
||||
bind R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"\; display "RELOADED"
|
||||
bind R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" #\; display "RELOADED"
|
||||
bind v copy-mode
|
||||
bind P choose-buffer "paste-buffer -b '%%' -s ''"
|
||||
bind p paste-buffer -s ''
|
||||
|
@ -103,75 +103,59 @@ unbind -T copy-mode-vi MouseDragEnd1Pane # Stay in copy mode on drag end.
|
|||
################################################################################
|
||||
# Style
|
||||
################################################################################
|
||||
set -g pane-border-style fg=black
|
||||
set -g pane-active-border-style fg=brightblue
|
||||
set -g message-style fg=brightwhite,bg=black
|
||||
set -g message-command-style fg=yellow,bg=black
|
||||
%hidden transparent_color="#131516"
|
||||
%hidden bg_color="#1d2021"
|
||||
%hidden fg_color="#a89984"
|
||||
%hidden prefix_color="#b57614"
|
||||
%hidden dimmed_color="#7c6f64"
|
||||
%hidden highlight_color="#427b58"
|
||||
%hidden active_color="#076678"
|
||||
|
||||
set -g status-justify left
|
||||
set -g status-left ""
|
||||
set -g status-right-length 64
|
||||
%hidden prefix_hl="#{?client_prefix,#[fg=${prefix_color}],}"
|
||||
|
||||
%hidden highlight="#b57614"
|
||||
%hidden current_badge="#076678"
|
||||
%hidden current_bg="#003848"
|
||||
%hidden current_fg="#83a598"
|
||||
%hidden window_badge="#665c54"
|
||||
%hidden window_fg="#7c6f64"
|
||||
%hidden inactive_begin=" #[default]"
|
||||
%hidden inactive_end="#[default] "
|
||||
|
||||
%hidden flags="#{?pane_synchronized, ,}#{?window_marked_flag, ,}#{?window_zoomed_flag, ,}"
|
||||
%hidden active_begin="#[fg=${transparent_color} bg=${bg_color}]#[fg=default bg=${transparent_color}] "
|
||||
%hidden active_end=" #[fg=${transparent_color} bg=${bg_color}]"
|
||||
|
||||
%if "${TMUX_ROUNDED}"
|
||||
%hidden inactive_index="#[fg=${dimmed_color}]${prefix_hl}#{?window_last_flag,#[fg=${highlight_color}],}"
|
||||
%hidden active_index="#[fg=${highlight_color}]"
|
||||
|
||||
%hidden background="#131516"
|
||||
%hidden window_bg="#282828"
|
||||
%hidden inactive_name="#[default]"
|
||||
%hidden active_name="#[fg=${active_color}]"
|
||||
|
||||
set -g status-style bg=${background}
|
||||
%hidden flags="#[fg=${dimmed_color}] #{?pane_synchronized, ,}#{?window_marked_flag, ,}#{?window_zoomed_flag, ,}"
|
||||
|
||||
setw -g window-status-format "\
|
||||
#[fg=#{?client_prefix,${highlight},${window_badge}}]#[reverse]#{window_index} #[noreverse]\
|
||||
#[fg=#{?window_last_flag,${current_fg},${window_fg}} bg=${window_bg}] #{window_name} ${flags}\
|
||||
#[fg=${window_bg} bg=${background}] "
|
||||
set -g pane-border-style "fg=black"
|
||||
set -g pane-active-border-style "fg=brightblue"
|
||||
|
||||
setw -g window-status-current-format "\
|
||||
#[fg=#{?client_prefix,${highlight},${current_badge}}]#[reverse]#{window_index} #[noreverse]\
|
||||
#[fg=${current_fg} bg=${current_bg}] #{window_name} ${flags}\
|
||||
#[fg=${current_bg} bg=${background}] "
|
||||
set -g message-style "fg=${fg_color} bg=${bg_color}"
|
||||
set -g message-command-style "fg=${highlight_color} bg=${bg_color}"
|
||||
|
||||
pill_begin="#[fg=#{?client_prefix,${highlight},${window_badge}}]#[reverse]"
|
||||
pill_mid="#[noreverse]#[fg=${window_fg} bg=${window_bg}]"
|
||||
pill_end="#[fg=${window_bg} bg=${background}]"
|
||||
set -g status-style "fg=${fg_color} bg=${bg_color}"
|
||||
|
||||
set -g status-right "\
|
||||
${pill_begin} ${pill_mid} #{pane_id}${pill_end} \
|
||||
${pill_begin} ${pill_mid} #{session_name}${pill_end} \
|
||||
${pill_begin} ${pill_mid} #{pid}${pill_end} \
|
||||
${pill_begin} ${pill_mid} #{host_short}${pill_end} "
|
||||
set -g status-left-length 10
|
||||
set -g status-left " ${prefix_hl} "
|
||||
|
||||
%else
|
||||
set -g status-right-length 64
|
||||
set -g status-right "\
|
||||
${active_begin}${prefix_hl} #{session_name}${active_end}\
|
||||
${inactive_begin}${prefix_hl} #{host_short}${inactive_end}"
|
||||
|
||||
%hidden background="#1d2021"
|
||||
set -g window-status-separator ""
|
||||
set -g status-justify left
|
||||
|
||||
set -g status-style bg=${background}
|
||||
set -g window-status-format "\
|
||||
${inactive_begin}\
|
||||
${inactive_index}#{window_index} \
|
||||
${inactive_name}#{window_name}\
|
||||
${flags}\
|
||||
${inactive_end}"
|
||||
|
||||
setw -g window-status-format "\
|
||||
#[fg=${background} bg=#{?client_prefix,${highlight},${window_badge}} bold] #{window_index} \
|
||||
#[fg=#{?window_last_flag,${current_fg},${window_fg}} bg=${background} nobold] #{window_name} ${flags}\
|
||||
#[default] "
|
||||
|
||||
setw -g window-status-current-format "\
|
||||
#[fg=${background} bg=#{?client_prefix,${highlight},${current_badge}} bold] #{window_index} \
|
||||
#[fg=${current_fg} bg=${current_bg} nobold] #{window_name} ${flags}\
|
||||
#[default] "
|
||||
|
||||
box_begin="#[fg=${background} bg=#{?client_prefix,${highlight},${window_badge}} bold] "
|
||||
box_mid="#[fg=${window_fg} bg=${background} nobold]"
|
||||
box_end="#[default]"
|
||||
|
||||
set -g status-right "\
|
||||
${box_begin} ${box_mid} #{pane_id} ${box_end} \
|
||||
${box_begin} ${box_mid} #{session_name} ${box_end} \
|
||||
${box_begin} ${box_mid} #{pid} ${box_end} \
|
||||
${box_begin} ${box_mid} #{host_short} ${box_end}"
|
||||
|
||||
%endif
|
||||
set -g window-status-current-format "\
|
||||
${active_begin}\
|
||||
${active_index}#{window_index} \
|
||||
${active_name}#{window_name}\
|
||||
${flags}\
|
||||
${active_end}"
|
||||
|
|
Loading…
Add table
Reference in a new issue