2024-05-02 11:21:29 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
pkgs,
|
2024-05-02 11:54:18 +02:00
|
|
|
inputs,
|
2024-05-02 11:21:29 +02:00
|
|
|
...
|
2024-05-02 13:12:03 +02:00
|
|
|
}: let
|
2024-05-02 13:41:41 +02:00
|
|
|
layout =
|
|
|
|
pkgs.writeText "default.kdl"
|
2024-05-02 13:12:03 +02:00
|
|
|
''
|
2024-05-02 14:18:50 +02:00
|
|
|
layout {
|
2024-05-12 18:03:05 +02:00
|
|
|
tab {
|
|
|
|
pane
|
|
|
|
}
|
2024-05-02 12:15:04 +02:00
|
|
|
|
2024-05-12 18:03:05 +02:00
|
|
|
swap_tiled_layout name="vertical" {
|
|
|
|
tab max_panes=5 {
|
|
|
|
pane split_direction="vertical" {
|
|
|
|
pane
|
|
|
|
pane { children; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tab max_panes=8 {
|
|
|
|
pane split_direction="vertical" {
|
|
|
|
pane { children; }
|
|
|
|
pane { pane; pane; pane; pane; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tab max_panes=12 {
|
|
|
|
pane split_direction="vertical" {
|
|
|
|
pane { children; }
|
|
|
|
pane { pane; pane; pane; pane; }
|
|
|
|
pane { pane; pane; pane; pane; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-05-02 12:15:04 +02:00
|
|
|
|
2024-05-12 18:03:05 +02:00
|
|
|
swap_tiled_layout name="horizontal" {
|
|
|
|
tab max_panes=5 {
|
|
|
|
pane
|
|
|
|
pane
|
|
|
|
}
|
|
|
|
tab max_panes=8 {
|
|
|
|
pane {
|
|
|
|
pane split_direction="vertical" { children; }
|
|
|
|
pane split_direction="vertical" { pane; pane; pane; pane; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
tab max_panes=12 {
|
|
|
|
pane {
|
|
|
|
pane split_direction="vertical" { children; }
|
|
|
|
pane split_direction="vertical" { pane; pane; pane; pane; }
|
|
|
|
pane split_direction="vertical" { pane; pane; pane; pane; }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-05-02 14:48:42 +02:00
|
|
|
|
2024-05-12 18:03:05 +02:00
|
|
|
default_tab_template {
|
|
|
|
pane size=1 borderless=true {
|
|
|
|
plugin location="file:${inputs.zjstatus.packages.${pkgs.system}.default}/bin/zjstatus.wasm" {
|
2024-06-18 13:31:14 +02:00
|
|
|
format_left "#[bg=#1D1D2E,fg=#C9D2F5,bold] {session} {mode} {tabs}"
|
|
|
|
format_right "#[bg=#C9D2F5,fg=#1D1D2E]#[bg=#C9D2F5,fg=#C9D2F5]#[bg=#C9D2F5,fg=#1D1D2E,bold]{datetime}#[bg=#1D1D2E,fg=#C9D2F5]"
|
2024-05-02 14:48:42 +02:00
|
|
|
|
2024-05-12 18:03:05 +02:00
|
|
|
mode_locked "#[fg=magenta,bold] {name} "
|
|
|
|
mode_normal "#[fg=green,bold] {name} "
|
|
|
|
mode_resize "#[fg=orange,bold] {name} "
|
|
|
|
mode_default_to_mode "resize"
|
2024-05-02 14:48:42 +02:00
|
|
|
|
2024-06-19 10:10:52 +02:00
|
|
|
tab_normal "#[bg=#C9D2F5,fg=#1D1D2E]#[bg=#C9D2F5,fg=#C9D2F5]#[bg=#C9D2F5,fg=#1D1D2E,bold]{name}{sync_indicator}{fullscreen_indicator}{floating_indicator}#[bg=#C9D2F5,fg=#C9D2F5]#[bg=#1D1D2E,fg=#C9D2F5]"
|
|
|
|
tab_active "#[bg=#A6DA95,fg=#1D1D2E]#[bg=#A6DA95,fg=#A6DA95]#[bg=#A6DA95,fg=#1D1D2E,bold]{name}{sync_indicator}{fullscreen_indicator}{floating_indicator}#[bg=#A6DA95,fg=#A6DA95]#[bg=#1D1D2E,fg=#A6DA95]"
|
2024-05-02 12:15:04 +02:00
|
|
|
|
2024-05-12 18:03:05 +02:00
|
|
|
tab_sync_indicator " "
|
|
|
|
tab_fullscreen_indicator "□ "
|
|
|
|
tab_floating_indicator " "
|
2024-05-02 12:15:04 +02:00
|
|
|
|
2024-06-18 13:31:14 +02:00
|
|
|
datetime "#[bg=#C9D2F5,fg=#1D1D2E,bold]{format} "
|
2024-05-12 18:03:05 +02:00
|
|
|
datetime_format "%Y-%m-%d %H:%M"
|
|
|
|
datetime_timezone "Europe/Amsterdam"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
children
|
|
|
|
pane size=2 borderless=true {
|
|
|
|
plugin location="status-bar"
|
2024-05-02 13:12:03 +02:00
|
|
|
}
|
2024-05-02 15:31:43 +02:00
|
|
|
}
|
2024-05-02 13:12:03 +02:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
in {
|
|
|
|
programs.zellij = {
|
|
|
|
# This autostarts zellij on zsh start
|
|
|
|
# TODO find specific settings for vscode to avoid
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
2024-04-29 20:06:28 +02:00
|
|
|
};
|
2024-05-02 11:54:18 +02:00
|
|
|
|
2024-05-02 12:24:29 +02:00
|
|
|
home.file = {
|
2024-05-02 13:41:41 +02:00
|
|
|
"layout" = {
|
|
|
|
source = "${layout}";
|
2024-05-02 14:28:40 +02:00
|
|
|
target = ".config/zellij/layouts/default.kdl";
|
2024-05-02 13:41:41 +02:00
|
|
|
};
|
|
|
|
};
|
|
|
|
home.file = {
|
|
|
|
"config" = {
|
|
|
|
source = ./zellij.kdl;
|
2024-05-02 12:24:29 +02:00
|
|
|
target = ".config/zellij/config.kdl";
|
|
|
|
};
|
|
|
|
};
|
2024-04-29 20:06:28 +02:00
|
|
|
}
|