2024-08-24 05:43:37 +00:00
|
|
|
{ config, lib, ... }:
|
2023-12-24 10:53:47 +00:00
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.custom-hm.alacritty;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.custom-hm.alacritty = {
|
|
|
|
enable = mkEnableOption "alacritty";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
programs.alacritty = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
shell = {
|
|
|
|
program = config.programs.zellij.package + "/bin/zellij";
|
|
|
|
args = [
|
|
|
|
"attach"
|
|
|
|
"-c"
|
2024-06-11 10:02:55 +00:00
|
|
|
"alacritty-zellij"
|
2023-12-24 10:53:47 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
font.size = 10.0;
|
|
|
|
window = {
|
|
|
|
resize_increments = true;
|
|
|
|
dynamic_padding = true;
|
2024-08-25 08:30:22 +00:00
|
|
|
decorations = "none";
|
2023-12-24 10:53:47 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|