feat(xps): use kanshi instead of static sway output config

main
mandlm 2024-01-13 20:41:39 +01:00
parent f570704277
commit 5d677c1a2e
Signed by: mandlm
GPG Key ID: 4AA25D647AA54CC7
1 changed files with 33 additions and 4 deletions

View File

@ -1,10 +1,39 @@
{ config, lib, pkgs, user, ... }: { config, lib, pkgs, user, ... }:
{ {
wayland.windowManager.sway.config = { services.kanshi = {
output = { enable = true;
eDP-1 = {
scale = "1.3"; profiles = {
undocked = {
outputs = [
{
criteria = "eDP-1";
scale = 1.3;
status = "enable";
}
];
};
home_office_right = {
outputs = [
{
criteria = "Samsung Electric Company SMS24A450 H4MCA12730";
scale = 1.0;
status = "enable";
position = "0,0";
}
{
criteria = "Samsung Electric Company SMS24A450 H4MCA12738";
scale = 1.0;
status = "enable";
position = "1920,0";
}
{
criteria = "eDP-1";
status = "disable";
}
];
}; };
}; };
}; };