nixos-config/modules/services/kanshi.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2022-10-31 17:01:43 +01:00
#
# System notifications
#
{ config, lib, pkgs, ... }:
{
services.kanshi = {
enable = true;
settings = [
{
profile = {
name = "undocked";
2022-10-31 17:01:43 +01:00
outputs = [
{ criteria = "eDP-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; }
2022-10-31 17:01:43 +01:00
];
};
}
{
profile = {
name = "docked_c";
2022-10-31 17:01:43 +01:00
outputs = [
2023-03-20 20:25:34 +01:00
{ criteria = "eDP-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; scale = 1.5; }
{ criteria = "DP-1"; status = "enable"; mode = "2560x1080"; position = "1920,0"; }
2022-11-03 16:10:46 +01:00
];
};
}
{
profile = {
name = "docked_triple";
2022-11-03 16:10:46 +01:00
outputs = [
{ criteria = "eDP-1"; status = "disable"; mode = "1920x1080"; position = "4480,0"; }
2023-03-20 20:25:34 +01:00
{ criteria = "HDMI-A-1"; status = "enable"; mode = "1920x1080"; position = "0,0"; }
{ criteria = "DP-1"; status = "enable"; mode = "2560x1080"; position = "1920,0"; }
2022-10-31 17:01:43 +01:00
];
};
}
];
2022-10-31 17:01:43 +01:00
};
}