nixos-configuration/home/sway/kanshi.nix

35 lines
712 B
Nix
Raw Normal View History

{ config, ... }: {
# automatically configure monitor layout depending on connected devices
# https://git.sr.ht/~emersion/kanshi
services.kanshi = {
enable = config.wayland.windowManager.sway.enable;
settings = [
{
profile = {
name = "home";
outputs = [
{
criteria = "eDP-1";
2024-11-24 11:07:07 +01:00
position = "0,0";
}
{
criteria = "HDMI-A-1";
2024-11-24 11:07:07 +01:00
position = "1920,0";
}
];
};
}
{
profile = {
name = "mobile";
outputs = [
{
criteria = "eDP-1";
}
];
};
}
];
};
}