statusline fancification

This commit is contained in:
Daniel Lundin 2020-10-14 11:17:59 +02:00
parent bd2e6876a1
commit 50cbc20571
No known key found for this signature in database
GPG key ID: 6AB527C9196ACDCC
3 changed files with 26 additions and 15 deletions

View file

@ -1,6 +1,6 @@
tmux:
symbols:
branch: ' '
branch: ''
hashprefix: ':'
ahead: ↑·
behind: ↓·
@ -13,14 +13,14 @@ tmux:
styles:
clear: '#[fg=default]'
state: '#[bg=red,fg=white]'
branch: '#[fg=white,bg=green] '
branch: '#[fg=#9ccc65,bg=#1b5e20] '
remote: '#[fg=cyan]'
staged: '#[fg=green]'
conflict: '#[fg=red]'
modified: '#[fg=#000000,bg=#ffc107]'
untracked: '#[fg=#000000,bg=#ffc107]'
stashed: '#[fg=cyan]'
clean: '#[fg=#e8f5e9,bg=green]'
layout: [branch, divergence, ' ', flags, ' ']
modified: '#[fg=#fdd835,bg=#1b5e20]'
untracked: '#[fg=#ff7043,bg=#1b5e20]'
stashed: '#[fg=#ffcdd2]'
clean: '#[fg=#4caf50,bg=#1b5e20]'
layout: [branch, divergence, ' ', flags, '#[fg=#212121]▕']
options:
branch_max_len: 0

View file

@ -70,7 +70,7 @@ truncate_to_repo = false
style = "bold"
[git_branch]
format = '▕#\[bg=green\] $symbol$branch '
format = '#\[fg=#212121]\▕#\[bg=green,fg=#f7f7f7\] $symbol$branch '
style = ""
[git_commit]
@ -86,7 +86,7 @@ style = ""
[kubernetes]
disabled = false
format = '▕#\[bg=blue\] $symbol$context(\($namespace\)) '
format = '#\[fg=#212121\]▕#\[bg=#0D47A1,fg=#80DEEA\] $symbol$context(\($namespace\)) '
style = ""
[time]
@ -94,19 +94,19 @@ disabled = false
style = ""
[golang]
format = '▕#\[bg=#00ACC1\] $symbol$version '
format = '#\[fg=#212121\]▕#\[bg=#00ACC1,fg=#f7f7f7\] $symbol$version '
style = ""
[jobs]
format = '▕#\[bg=#7E57C2\] $symbol$number '
format = '#\[fg=#212121\]▕#\[bg=#7E57C2,fg=#f7f7f7\] $symbol$number '
style = ""
disabled = false
[status]
format = '▕#\[bg=red\] $symbol$status '
format = '\#\[fg=#212121\]▕#[bg=red,fg=#f7f7f7\] $symbol$status '
style = ""
disabled = false
[cmd_duration]
format = '▕#\[bg=#558B2F\] ⏳$duration '
format = '#\[fg=#212121\]▕#\[bg=#558B2F,fg=#f7f7f7\] ⏳$duration '
style = ""

View file

@ -57,10 +57,21 @@ setw -g window-status-separator ""
set -g status-style "bg=#3e3e3e,fg=#c0c0c0"
set -g status-left-length 0
set -g status-right-length 0
set -g status-left '#{=|45|…:pane_current_path}'
set -g status-right '#[fg=#f7f7f7]#{@starship}#(~/go/bin/gitmux -cfg ~/.config/gitmux/gitmux.yaml "#{pane_current_path}")'
set -g status-left '#[bg=#263238,fg=#707070] #W#[fg=#212121]▕#[bg=#3e3e3e,fg=#a0a0a0] #{=|45|…:pane_current_path}'
set -g status-right '#[fg=#f7f7f7]#{@starship}#[fg=#212121]▕#[fg=#f7f7f7]#(~/go/bin/gitmux -cfg ~/.config/gitmux/gitmux.yaml "#{pane_current_path}")#[bg=#263238,fg=#707070] #(date +%%H:%%M) '
set -g set-titles on
set -g set-titles-string "#H - #T"
new -s 0 -n 1
new-window -n 2
new-window -n 3
new-window -n 4
new-window -n 5
new-window -n 6
new-window -n 7
new-window -n 8
new-window -n 9
new-window -n 0
# vim:set ft=tmux: