home-manager/xps.nix

63 lines
2.1 KiB
Nix

{ ... }:
{
services.kanshi = {
enable = true;
settings = [
{
profile = {
name = "undocked";
outputs = [
{
criteria = "eDP-1";
scale = 1.3;
status = "enable";
}
];
};
}
{
profile = {
name = "home_office";
outputs = [
{
criteria = "Acer Technologies Acer PE270K 0x0027A130";
mode = "3840x2160";
scale = 1.75;
status = "enable";
position = "0,0";
transform = "normal";
}
{
criteria = "Acer Technologies Acer PE270K 0x0027A150";
mode = "3840x2160";
scale = 1.75;
status = "enable";
position = "2194,0";
transform = "normal";
}
{
criteria = "eDP-1";
status = "disable";
}
];
exec = ''
exec swaymsg workspace 0, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
exec swaymsg workspace 8, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
exec swaymsg workspace 6, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
exec swaymsg workspace 4, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
exec swaymsg workspace 2, move workspace to output '"Acer Technologies Acer PE270K 0x0027A130"'
exec swaymsg workspace 9, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
exec swaymsg workspace 7, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
exec swaymsg workspace 5, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
exec swaymsg workspace 3, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
exec swaymsg workspace 1, move workspace to output '"Acer Technologies Acer PE270K 0x0027A150"'
'';
};
}
];
};
}