nix/home-manager/common/software/cli/zellij.nix
2024-04-29 21:24:56 +09:00

71 lines
2.3 KiB
Nix

{ config, pkgs, inputs, system, ... }: {
programs.zellij = {
enable = true;
# enableBashIntegration = true;
# enableFishIntegration = true;
settings = {
session_serialization = false;
mirror_session = true;
simplified_ui = true;
ui.pane_frames.rounded_corners = true;
ui.pane_frames.hide_session_name = true;
theme = "stylix";
themes.stylix = with config.lib.stylix.colors.withHashtag; {
bg = base02;
fg = base05;
red = base08;
green = base0B;
blue = base0D;
yellow = base0A;
magenta = base0E;
orange = base09;
cyan = base0C;
black = base00;
white = base05;
};
};
};
xdg.configFile."zjstatus-layout-default" = {
enable = true;
target = "zellij/layouts/default.kdl";
text = ''
layout {
default_tab_template {
children
pane size=1 borderless=false {
plugin location="${inputs.zjstatus.packages.${system}.default}" {
format_left "{mode} #[fg=#89B4FA,bold]{session}"
format_center "{tabs}"
format_right "{command_git_branch} {datetime}"
format_space ""
border_enabled "false"
border_char ""
border_format "#[fg=#6C7086]{char}"
border_position "top"
hide_frame_for_single_pane "true"
mode_normal "#[bg=blue] "
mode_tmux "#[bg=#ffc387] "
tab_normal "#[fg=#6C7086] {name} "
tab_active "#[fg=#9399B2,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=#6C7086,bold] {format} "
datetime_format "%A, %d %b %Y %H:%M"
datetime_timezone "Europe/Berlin"
}
}
}
}
'';
};
}