From 0816c57dd9f20e5c8d15fc6946f5d254fa621674 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Thu, 2 May 2024 14:48:42 +0200 Subject: [PATCH] Let's try this layout and replace the tab bar after --- home-manager/shared/shell/zellij.nix | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/home-manager/shared/shell/zellij.nix b/home-manager/shared/shell/zellij.nix index 7825dc1..191b852 100644 --- a/home-manager/shared/shell/zellij.nix +++ b/home-manager/shared/shell/zellij.nix @@ -19,6 +19,7 @@ pane size=1 borderless=true { plugin location="file:${inputs.zjstatus.packages.${pkgs.system}.default}/bin/zjstatus.wasm" { format_left "{mode} #[fg=cyan,bold]{session}" + format_center "{tabs}" format_right "{command_git_branch} {datetime}" format_space "" @@ -32,8 +33,23 @@ mode_normal "#[bg=blue] " mode_tmux "#[bg=blue] " - tab_normal "#[fg=green] {name} " - tab_active "#[fg=red,bold,italic] {name} " + // formatting for inactive tabs + tab_normal "#[fg=green] {index} :: {name} " + tab_normal_fullscreen "#[fg=green] {index} :: {name} [] " + tab_normal_sync "#[fg=green] {index} :: {name} <> " + + // formatting for the current active tab + tab_active "#[fg=blue,bold,italic] {name} {floating_indicator}" + tab_active_fullscreen "#[fg=blue,bold,italic] {name} {fullscreen_indicator}" + tab_active_sync "#[fg=blue,bold,italic] {name} {sync_indicator}" + + // separator between the tabs + tab_separator "#[fg=green,bg=orange] | " + + // indicators + tab_sync_indicator "<> " + tab_fullscreen_indicator "[] " + tab_floating_indicator "⬚ " command_git_branch_command "git rev-parse --abbrev-ref HEAD" command_git_branch_format "#[fg=blue] {stdout} "