[tmux] strip down statusline

This commit is contained in:
Marco Thomas
2022-12-05 00:21:56 +01:00
parent ea7e645d6a
commit 8a83c5b76d
2 changed files with 22 additions and 27 deletions

View File

@@ -1,11 +1,13 @@
# tmux.conf # tmux.conf
# ~ M. Thomas # ~ M. Thomas
######### Terminal Setup ##########
# set default terminal # set default terminal
set -g default-terminal "tmux-256color" set -g default-terminal "tmux-256color"
# enable true color terminal # enable true color terminal
set -ga terminal-overrides ",*256col*:Tc,alacritty:Tc" set -ga terminal-overrides ",*256col*:Tc,alacritty:Tc"
######### Keybinds ##########
# new panes (open with current path) # new panes (open with current path)
bind-key -n M-v split-window -h -c "#{pane_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}" 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-Up' resize-pane -U
bind-key -n 'M-Down' resize-pane -D bind-key -n 'M-Down' resize-pane -D
########## General ##########
# alias # alias
set -s command-alias[1] respawn='respawn-pane -k' set -s command-alias[1] respawn='respawn-pane -k'
@@ -67,14 +70,26 @@ set-option -g mouse on
set -g base-index 1 set -g base-index 1
setw -g pane-base-index 1 setw -g pane-base-index 1
# styling # set terminal window title (update every second)
set -g status-position bottom
# set terminal window title
set-option -g status-interval 1 set-option -g status-interval 1
set-option -g set-titles on set-option -g set-titles on
set-option -g set-titles-string "#H: #W" set-option -g set-titles-string "#H: #W"
# using https://github.com/edkolev/tmuxline.vim ########## Styling ##########
# open vim, `:TmuxLineSnapshot`, save to ~/.tmux.theme # generated using https://github.com/edkolev/tmuxline.vim
if-shell "test -f ~/.tmux.theme" "source ~/.tmux.theme" 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]"

View File

@@ -21,7 +21,6 @@ Plug 'tpope/vim-fugitive' " git wrapper
Plug 'sainnhe/everforest' " color scheme Plug 'sainnhe/everforest' " color scheme
Plug 'vim-airline/vim-airline' " a nicer status line Plug 'vim-airline/vim-airline' " a nicer status line
Plug 'vim-airline/vim-airline-themes' " auto settings theme for airline 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() call plug#end()
" ============================== Colors " ============================== 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 set showtabline=1 " 1: only if there are at least two tab pages
let g:airline_powerline_fonts = 1 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 " ============================== Indents and Whitespaces
set list set list
set listchars=tab:──\ ,extends:,precedes:,nbsp,trail" show chars for whitespaces set listchars=tab:──\ ,extends:,precedes:,nbsp,trail" show chars for whitespaces