Simplify sway window rule setting

Add various Python and IDL windows to floating window rule
This commit is contained in:
Evie Litherland-Smith 2024-05-13 16:46:39 +01:00
parent 7d84e1be39
commit 12dd40b3c8

View file

@ -98,32 +98,26 @@
];
window = {
border = 1;
commands = [
{
criteria = {app_id = "org.kde.polkit-kde-authentication-agent-1";};
command = "floating enable";
}
{
criteria = {app_id = "Pinentry";};
command = "floating enable";
}
{
criteria = {app_id = "pavucontrol";};
command = "floating enable";
}
{
criteria = {app_id = ".blueman-manager-wrapped";};
command = "floating enable";
}
{
criteria = {app_id = "nm-connection-editor";};
command = "floating enable";
}
{
criteria = {class = "steam";};
command = "layout tabbed";
}
];
commands =
(map (criteria: {
inherit criteria;
command = "floating enable";
}) [
{app_id = "org.kde.polkit-kde-authentication-agent-1";}
{app_id = "Pinentry";}
{app_id = "pavucontrol";}
{app_id = "\.blueman-manager-wrapped";}
{app_id = "nm-connection-editor";}
{class = "matplotlib";}
{class = ".*\.py";}
{class = "Idl";}
])
++ [
{
criteria = {class = "steam";};
command = "layout tabbed";
}
];
};
floating.border = 1;
keybindings = with config; let