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