From 8a83c5b76d5b2d37f1201c20dbaf78973468e78b Mon Sep 17 00:00:00 2001 From: Marco Thomas Date: Mon, 5 Dec 2022 00:21:56 +0100 Subject: [PATCH] [tmux] strip down statusline --- files/tmux/.tmux.conf | 29 ++++++++++++++++++++++------- files/vim/.vimrc | 20 -------------------- 2 files changed, 22 insertions(+), 27 deletions(-) diff --git a/files/tmux/.tmux.conf b/files/tmux/.tmux.conf index 66f940b..68b74dc 100644 --- a/files/tmux/.tmux.conf +++ b/files/tmux/.tmux.conf @@ -1,11 +1,13 @@ # tmux.conf # ~ M. Thomas +######### Terminal Setup ########## # set default terminal set -g default-terminal "tmux-256color" # enable true color terminal set -ga terminal-overrides ",*256col*:Tc,alacritty:Tc" +######### Keybinds ########## # new panes (open with current path) bind-key -n M-v split-window -h -c "#{pane_current_path}" bind-key -n M-s split-window -v -c "#{pane_current_path}" @@ -51,6 +53,7 @@ bind-key -n 'M-Right' resize-pane -R bind-key -n 'M-Up' resize-pane -U bind-key -n 'M-Down' resize-pane -D +########## General ########## # alias set -s command-alias[1] respawn='respawn-pane -k' @@ -67,14 +70,26 @@ set-option -g mouse on set -g base-index 1 setw -g pane-base-index 1 -# styling -set -g status-position bottom - -# set terminal window title +# set terminal window title (update every second) set-option -g status-interval 1 set-option -g set-titles on set-option -g set-titles-string "#H: #W" -# using https://github.com/edkolev/tmuxline.vim -# open vim, `:TmuxLineSnapshot`, save to ~/.tmux.theme -if-shell "test -f ~/.tmux.theme" "source ~/.tmux.theme" +########## Styling ########## +# generated using https://github.com/edkolev/tmuxline.vim +set -g status-position top +set -g status-justify "left" +set -g status "on" +set -g message-command-style "fg=#829181,bg=#e9e8d2" +set -g pane-active-border-style "fg=#93b259" +set -g status-style "none,bg=#FFF9E8" +set -g message-style "fg=#829181,bg=#e9e8d2" +set -g pane-border-style "fg=#e9e8d2" +set -g status-right-length "100" +set -g status-left-length "100" +setw -g window-status-activity-style "none,fg=#93b259,bg=#FFF9E8" +setw -g window-status-style "none,fg=#939f91,bg=#FFF9E8" +set -g status-left "" +set -g status-right "#[fg=#939f91,bg=#FFF9E8] #H @ #S" +setw -g window-status-format "#[default][#I  #W]" +setw -g window-status-current-format "#[fg=black,bold][#I  #W]" diff --git a/files/vim/.vimrc b/files/vim/.vimrc index 077e17a..b56b3d3 100644 --- a/files/vim/.vimrc +++ b/files/vim/.vimrc @@ -21,7 +21,6 @@ Plug 'tpope/vim-fugitive' " git wrapper Plug 'sainnhe/everforest' " color scheme Plug 'vim-airline/vim-airline' " a nicer status line Plug 'vim-airline/vim-airline-themes' " auto settings theme for airline -Plug 'edkolev/tmuxline.vim' " generate a theme for tmux `:TmuxLineSnapshot ~/.tmux.theme` call plug#end() " ============================== Colors @@ -63,25 +62,6 @@ set laststatus=1 " 1: only if there are at least two windows set showtabline=1 " 1: only if there are at least two tab pages let g:airline_powerline_fonts = 1 -" let g:tmuxline_preset = { -" \'a' : ['#H'], -" \'win' : ['#I', '#W'], -" \'cwin' : ['#[fg=black,bold]#I', '#W'], -" \'y' : ['%R'], -" \'z' : ['#S']} -" let g:tmuxline_status_justify = 'left' - -let g:tmuxline_preset = { - \'a' : '', - \'b' : '', - \'c' : '', - \'win' : ['#I', '#W'], - \'cwin' : ['#[fg=black,bold]#I', '#W'], - \'x' : '#H @ #S', - \'y' : '', - \'z' : ''} -let g:tmuxline_status_justify = 'centre' - " ============================== Indents and Whitespaces set list set listchars=tab:──\ ,extends:›,precedes:‹,nbsp:·,trail:· " show chars for whitespaces