home/kanshi | deal with DP-* number change on redocking'

This commit is contained in:
Don Harper 2024-05-14 07:21:44 -05:00
parent f271cabd58
commit d789ca2d0a

View file

@ -61,6 +61,54 @@
"swaymsg workspace 9, move workspace to output DP-6" "swaymsg workspace 9, move workspace to output DP-6"
]; ];
}; };
docked2 = {
outputs = [
{
criteria = "eDP-1";
status = "disable";
}
{
criteria = "DP-7";
status = "enable";
position = "0,0";
}
{
criteria = "DP-8";
status = "enable";
position = "0,1080";
}
];
exec = [
"swaymsg workspace 1, move workspace to output DP-7"
"swaymsg workspace 5, move workspace to output DP-8"
"swaymsg workspace 6, move workspace to output DP-7"
"swaymsg workspace 9, move workspace to output DP-8"
];
};
docked3 = {
outputs = [
{
criteria = "eDP-1";
status = "disable";
}
{
criteria = "DP-9";
status = "enable";
position = "0,0";
}
{
criteria = "DP-10";
status = "enable";
position = "0,1080";
}
];
exec = [
"swaymsg workspace 1, move workspace to output DP-9"
"swaymsg workspace 5, move workspace to output DP-10"
"swaymsg workspace 6, move workspace to output DP-9"
"swaymsg workspace 9, move workspace to output DP-10"
];
};
}; };
}; };
}; };