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

This commit is contained in:
Michael Mandl 2024-01-13 20:41:39 +01:00
parent f570704277
commit 5d677c1a2e
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7

View file

@ -1,10 +1,39 @@
{ config, lib, pkgs, user, ... }:
{
wayland.windowManager.sway.config = {
output = {
eDP-1 = {
scale = "1.3";
services.kanshi = {
enable = true;
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";
}
];
};
};
};