nixos/users/malte/kanshi.nix
Malte Tammena 9bada411db Move [marie|malte] -> /users/[marie|malte]
To prepare for an addiotional /users/modules
which can be shared between users.
2022-01-13 12:08:39 +01:00

44 lines
900 B
Nix

{ pkgs, ... }:
let
notify = profile: ''
${pkgs.libnotify}/bin/notify-send -t 10000 -a 'Kanshi' '${profile}' 'Profile activated'
'';
in {
services.kanshi = {
enable = true;
profiles = {
undocked = {
outputs = [{ criteria = "eDP-1"; }];
exec = notify "Undocked";
};
docked = {
outputs = [
{
criteria = "eDP-1";
mode = "3840x2160@60Hz";
position = "0,1380";
scale = 2.0;
}
{
criteria = "DP-2";
mode = "1920x1080@60Hz";
position = "1920,0";
scale = 1.0;
transform = "270";
}
{
criteria = "DP-1";
mode = "1920x1080@60Hz";
position = "3000,420";
scale = 1.0;
}
];
exec = notify "Docked";
};
};
};
}