2024-11-24 00:32:44 +01:00
|
|
|
{ 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";
|
2024-11-24 00:32:44 +01:00
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "HDMI-A-1";
|
2024-11-24 11:07:07 +01:00
|
|
|
position = "1920,0";
|
2024-11-24 00:32:44 +01:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
profile = {
|
|
|
|
name = "mobile";
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|