33 lines
645 B
Nix
33 lines
645 B
Nix
{ 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";
|
|
}
|
|
{
|
|
criteria = "HDMI-A-1";
|
|
}
|
|
];
|
|
};
|
|
}
|
|
{
|
|
profile = {
|
|
name = "mobile";
|
|
outputs = [
|
|
{
|
|
criteria = "eDP-1";
|
|
}
|
|
];
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|