dotfiles/lib/nixos/home-manager/modules/kanshi.nix

44 lines
832 B
Nix
Raw Normal View History

2024-03-22 23:38:40 +00:00
{
systemd.user.services.kanshi = {
serviceConfig = {
StartLimitBurst = 5;
StartLimitIntervalSec = 30;
};
};
services.kanshi = {
enable = true;
# swaymsg -t get_outputs
2024-05-31 15:09:49 +00:00
settings = [
{
profile.name = "undocked";
profile.outputs = [
{
criteria = "eDP-1";
status = "enable";
mode = "1920x1080";
position = "0,0";
}
];
}
{
profile.name = "docked";
profile.outputs = [
2024-03-22 23:38:40 +00:00
{
criteria = "eDP-1";
status = "disable";
}
{
criteria = "Samsung Electric Company LU28R55 H4ZRA00128";
2024-05-09 12:55:11 +00:00
mode = "3840x2160";
2024-03-22 23:38:40 +00:00
position = "0,0";
2024-05-31 15:09:49 +00:00
scale = 1.5;
2024-03-22 23:38:40 +00:00
}
];
2024-05-31 15:09:49 +00:00
}
];
2024-03-22 23:38:40 +00:00
};
}