From 50cbc20571f2fa3cffde7289e260e5e3a00058c4 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 14 Oct 2020 11:17:59 +0200 Subject: [PATCH] statusline fancification --- .config/gitmux/gitmux.yaml | 14 +++++++------- .config/starship-tmux.toml | 12 ++++++------ .tmux.conf | 15 +++++++++++++-- 3 files changed, 26 insertions(+), 15 deletions(-) diff --git a/.config/gitmux/gitmux.yaml b/.config/gitmux/gitmux.yaml index 3a5d049..81b8a3e 100644 --- a/.config/gitmux/gitmux.yaml +++ b/.config/gitmux/gitmux.yaml @@ -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 diff --git a/.config/starship-tmux.toml b/.config/starship-tmux.toml index 43e767d..d943c77 100644 --- a/.config/starship-tmux.toml +++ b/.config/starship-tmux.toml @@ -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 = "" diff --git a/.tmux.conf b/.tmux.conf index 59b733d..40c21cf 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -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: