Let's try it with a file, else we'll have to make it a string in the config file

This commit is contained in:
Lillian Violet 2024-05-02 12:24:29 +02:00
parent 422321705e
commit 1ad3ad4945
2 changed files with 80 additions and 45 deletions

View file

@ -29,3 +29,38 @@ themes {
white "#cad3f5" white "#cad3f5"
} }
} }
pane = {
default_tab_template {
children
pane size=1 borderless=true {
plugin location="file:${inputs.conduit.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 ""
border_enabled "false"
border_char "─"
border_format "#[fg=green]{char}"
border_position "top"
hide_frame_for_single_pane "true"
mode_normal "#[bg=blue] "
mode_tmux "#[bg=blue] "
tab_normal "#[fg=green] {name} "
tab_active "#[fg=red,bold,italic] {name} "
command_git_branch_command "git rev-parse --abbrev-ref HEAD"
command_git_branch_format "#[fg=blue] {stdout} "
command_git_branch_interval "10"
command_git_branch_rendermode "static"
datetime "#[fg=#green,bold] {format} "
datetime_format "%A, %d %b %Y %H:%M"
datetime_timezone "Europe/Berlin"
}
}
}
}

View file

@ -13,58 +13,58 @@
session_serialization = true; session_serialization = true;
theme = "catppuccin-macchiato"; theme = "catppuccin-macchiato";
themes = { # themes = {
catppuccin-macchiato = { # catppuccin-macchiato = {
bg = "#5b6078"; # bg = "#5b6078";
fg = "#cad3f5"; # fg = "#cad3f5";
red = "#ed8796"; # red = "#ed8796";
green = "#a6da95"; # green = "#a6da95";
blue = "#8aadf4"; # blue = "#8aadf4";
yellow = "#eed49f"; # yellow = "#eed49f";
magenta = "#f5bde6"; # magenta = "#f5bde6";
orange = "#f5a97f"; # orange = "#f5a97f";
cyan = "#91d7e3"; # cyan = "#91d7e3";
black = "#1e2030"; # black = "#1e2030";
white = "#cad3f5"; # white = "#cad3f5";
}; # };
}; # };
pane = { # pane = {
"plugin location= \"file:${inputs.zjstatus.packages.${pkgs.system}.default}/bin/zjstatus.wasm\"" = { # "plugin location= \"file:${inputs.zjstatus.packages.${pkgs.system}.default}/bin/zjstatus.wasm\"" = {
format_left = "{mode} #[fg=#89B4FA,bold]{session}"; # format_left = "{mode} #[fg=#89B4FA,bold]{session}";
format_center = "{tabs}"; # format_center = "{tabs}";
format_right = "{command_git_branch} {datetime}"; # format_right = "{command_git_branch} {datetime}";
format_space = ""; # format_space = "";
border_enabled = "false"; # border_enabled = "false";
border_char = ""; # border_char = "─";
border_format = "#[fg=#6C7086]{char}"; # border_format = "#[fg=#6C7086]{char}";
border_position = "top"; # border_position = "top";
hide_frame_for_single_pane = "true"; # hide_frame_for_single_pane = "true";
mode_normal = "#[bg=blue] "; # mode_normal = "#[bg=blue] ";
mode_tmux = "#[bg=#ffc387] "; # mode_tmux = "#[bg=#ffc387] ";
tab_normal = "#[fg=#6C7086] {name} "; # tab_normal = "#[fg=#6C7086] {name} ";
tab_active = "#[fg=#9399B2,bold,italic] {name} "; # tab_active = "#[fg=#9399B2,bold,italic] {name} ";
command_git_branch_command = "git rev-parse --abbrev-ref HEAD"; # command_git_branch_command = "git rev-parse --abbrev-ref HEAD";
command_git_branch_format = "#[fg=blue] {stdout} "; # command_git_branch_format = "#[fg=blue] {stdout} ";
command_git_branch_interval = "10"; # command_git_branch_interval = "10";
command_git_branch_rendermode = "static"; # command_git_branch_rendermode = "static";
datetime = "#[fg=#6C7086,bold] {format} "; # datetime = "#[fg=#6C7086,bold] {format} ";
datetime_format = "%A, %d %b %Y %H:%M"; # datetime_format = "%A, %d %b %Y %H:%M";
datetime_timezone = "Europe/Amsterdam"; # datetime_timezone = "Europe/Amsterdam";
}; # };
}; # };
}; };
}; };
# home.file = { home.file = {
# "zellij" = { "zellij" = {
# source = ./zellij.kdl; source = ./zellij.kdl;
# target = ".config/zellij/config.kdl"; target = ".config/zellij/config.kdl";
# }; };
# }; };
} }