2024-01-12 22:31:01 +00:00
|
|
|
{ config, lib, pkgs, user, ... }:
|
|
|
|
|
|
|
|
{
|
2024-01-13 19:41:39 +00:00
|
|
|
services.kanshi = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
profiles = {
|
|
|
|
undocked = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
scale = 1.3;
|
|
|
|
status = "enable";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2024-01-14 16:15:21 +00:00
|
|
|
home_office_left = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
criteria = "Samsung Electric Company U28E590 HTPJ404252";
|
2024-01-22 06:51:58 +00:00
|
|
|
mode = "3840x2160";
|
2024-01-14 16:15:21 +00:00
|
|
|
scale = 1.5;
|
|
|
|
status = "enable";
|
|
|
|
position = "0,526";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "Samsung Electric Company U28E590 HTPJ300612";
|
2024-01-22 06:51:58 +00:00
|
|
|
mode = "3840x2160";
|
2024-01-14 16:15:21 +00:00
|
|
|
scale = 1.5;
|
|
|
|
status = "enable";
|
|
|
|
position = "2560,0";
|
|
|
|
transform = "270";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
status = "disable";
|
|
|
|
}
|
|
|
|
];
|
|
|
|
exec = ''
|
2024-01-14 16:23:33 +00:00
|
|
|
exec swaymsg workspace 0, move workspace to output '"Samsung Electric Company U28E590 HTPJ300612"'
|
|
|
|
exec swaymsg workspace 8, move workspace to output '"Samsung Electric Company U28E590 HTPJ300612"'
|
|
|
|
exec swaymsg workspace 6, move workspace to output '"Samsung Electric Company U28E590 HTPJ300612"'
|
|
|
|
exec swaymsg workspace 4, move workspace to output '"Samsung Electric Company U28E590 HTPJ300612"'
|
|
|
|
exec swaymsg workspace 2, move workspace to output '"Samsung Electric Company U28E590 HTPJ300612"'
|
2024-01-14 16:15:21 +00:00
|
|
|
|
2024-01-14 16:23:33 +00:00
|
|
|
exec swaymsg workspace 9, move workspace to output '"Samsung Electric Company U28E590 HTPJ404252"'
|
|
|
|
exec swaymsg workspace 7, move workspace to output '"Samsung Electric Company U28E590 HTPJ404252"'
|
|
|
|
exec swaymsg workspace 5, move workspace to output '"Samsung Electric Company U28E590 HTPJ404252"'
|
|
|
|
exec swaymsg workspace 3, move workspace to output '"Samsung Electric Company U28E590 HTPJ404252"'
|
|
|
|
exec swaymsg workspace 1, move workspace to output '"Samsung Electric Company U28E590 HTPJ404252"'
|
2024-01-14 16:15:21 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
2024-01-13 19:41:39 +00:00
|
|
|
home_office_right = {
|
|
|
|
outputs = [
|
|
|
|
{
|
|
|
|
criteria = "Samsung Electric Company SMS24A450 H4MCA12730";
|
2024-01-22 06:51:58 +00:00
|
|
|
mode = "1920x1200";
|
2024-01-13 19:41:39 +00:00
|
|
|
scale = 1.0;
|
|
|
|
status = "enable";
|
|
|
|
position = "0,0";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "Samsung Electric Company SMS24A450 H4MCA12738";
|
2024-01-22 06:51:58 +00:00
|
|
|
mode = "1920x1200";
|
2024-01-13 19:41:39 +00:00
|
|
|
scale = 1.0;
|
|
|
|
status = "enable";
|
|
|
|
position = "1920,0";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = "eDP-1";
|
|
|
|
status = "disable";
|
|
|
|
}
|
|
|
|
];
|
2024-01-14 16:23:33 +00:00
|
|
|
exec = ''
|
|
|
|
exec swaymsg workspace 0, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12738"'
|
|
|
|
exec swaymsg workspace 8, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12738"'
|
|
|
|
exec swaymsg workspace 6, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12738"'
|
|
|
|
exec swaymsg workspace 4, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12738"'
|
|
|
|
exec swaymsg workspace 2, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12738"'
|
|
|
|
|
|
|
|
exec swaymsg workspace 9, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12730"'
|
|
|
|
exec swaymsg workspace 7, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12730"'
|
|
|
|
exec swaymsg workspace 5, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12730"'
|
|
|
|
exec swaymsg workspace 3, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12730"'
|
|
|
|
exec swaymsg workspace 1, move workspace to output '"Samsung Electric Company SMS24A450 H4MCA12730"'
|
|
|
|
'';
|
2024-01-12 22:31:01 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|