feat: init basic layout

This commit is contained in:
notohh 2023-03-11 19:05:07 -05:00
parent b299a804c5
commit 5dd25c49b9
Signed by: notohh
GPG key ID: BD47506D475EE86D
2 changed files with 67 additions and 14 deletions

View file

@ -2,21 +2,31 @@
default, default,
... ...
}: { }: {
imports = [
./layouts.nix
];
programs.zellij = { programs.zellij = {
enable = true; enable = true;
settings = { settings = {
theme = "custom"; on_force_close = "quit";
themes.custom.bg = "#585b70"; simplified_ui = false;
themes.custom.fg = "#cdd6f4"; default_layout = "default";
themes.custom.red = "#f38ba8"; ui.pane_frames.rounded_corners = true;
themes.custom.green = "#a6e3a1"; theme = "catppuccin-mocha";
themes.custom.blue = "#89b4fa"; themes.catppuccin-mocha = {
themes.custom.yellow = "#f9e2af"; bg = "#585b70";
themes.custom.magenta = "#f5c2e7"; fg = "#cdd6f4";
themes.custom.orange = "#fab387"; red = "#f38ba8";
themes.custom.cyan = "#89dceb"; green = "#a6e3a1";
themes.custom.black = "#181825"; blue = "#89b4fa";
themes.custom.white = "#cdd6f4"; yellow = "#f9e2af";
magenta = "#f5c2e7";
orange = "#fab387";
cyan = "#89dceb";
black = "#181825";
white = "#cdd6f4";
};
}; };
}; };
} }

43
home/zellij/layouts.nix Normal file
View file

@ -0,0 +1,43 @@
{
default,
...
}: {
home.file.".config/zellij/mainlayout.kdl".text = ''
layout {
tab name="main" {
pane size=1 borderless=true {
plugin location="zellij:tab-bar"
}
pane split_direction="vertical" {
pane
pane split_direction="horizontal" {
pane
pane
}
}
pane size=2 borderless=true {
plugin location="zellij:status-bar"
}
}
tab name="lazygit" {
pane size=1 borderless=true {
plugin location="zellij:tab-bar"
}
pane command="lazygit"
pane size=2 borderless=true {
plugin location="zellij:status-bar"
}
}
tab name="spotify" {
pane size=1 borderless=true {
plugin location="zellij:tab-bar"
}
pane command="spotify_player"
pane size=2 borderless=true {
plugin location="zellij:status-bar"
}
}
}
'';
}