nix-config/home/kanshi.nix

32 lines
773 B
Nix

{
...
}: let
t27 = "Lenovo Group Limited T27h-30*";
m15 = "Lenovo Group Limited M15*";
in {
services.kanshi = {
enable = true;
settings = [
{ output.criteria = "eDP-1"; output.scale = 1.0; }
{ output.criteria = t27; }
{ output.criteria = m15; }
{ profile.name = "mobile";
profile.outputs = [
{ criteria = "eDP-1"; }
];
}
{ profile.name = "t27" ;
profile.outputs = [
{ criteria = "eDP-1"; position = "152,1440"; }
{ criteria = t27; position = "0,0"; }
];
}
{ profile.name = "m15" ;
profile.outputs = [
{ criteria = "eDP-1"; position = "0,1080"; }
{ criteria = m15; position = "168,0"; }
];
}
];
};
}