2024-10-19 19:59:55 -04:00
|
|
|
{ config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-11-07 18:17:51 -05:00
|
|
|
wayland.windowManager.sway.config = {
|
|
|
|
# Assign workspaces to config
|
|
|
|
workspaceOutputAssign = let
|
|
|
|
workspaces1 = [
|
|
|
|
"${config.ws.w0}"
|
|
|
|
"${config.ws.w1}"
|
|
|
|
"${config.ws.w2}"
|
|
|
|
"${config.ws.w3}"
|
|
|
|
"${config.ws.w1a}"
|
|
|
|
"${config.ws.w2a}"
|
|
|
|
"${config.ws.w3a}"
|
|
|
|
];
|
|
|
|
workspaces2 = [
|
|
|
|
"${config.ws.w4}"
|
|
|
|
"${config.ws.w5}"
|
|
|
|
"${config.ws.w6}"
|
|
|
|
"${config.ws.w4a}"
|
|
|
|
"${config.ws.w5a}"
|
|
|
|
];
|
|
|
|
workspaces3 = [
|
|
|
|
"${config.ws.w7}"
|
|
|
|
"${config.ws.w8}"
|
|
|
|
"${config.ws.w9}"
|
|
|
|
"${config.ws.w7a}"
|
|
|
|
"${config.ws.w8a}"
|
2024-11-12 04:25:51 -05:00
|
|
|
];
|
|
|
|
workspaces4 = [
|
|
|
|
"${config.ws.w6a}"
|
2024-11-07 18:17:51 -05:00
|
|
|
"${config.ws.w9a}"
|
|
|
|
];
|
|
|
|
assign = output: workspaces:
|
|
|
|
map (workspace: {
|
|
|
|
inherit workspace;
|
|
|
|
inherit output;
|
|
|
|
})
|
|
|
|
workspaces;
|
|
|
|
in
|
|
|
|
(assign "${config.displays.d1}" workspaces1) ++
|
|
|
|
(assign "${config.displays.d2}" workspaces2) ++
|
2024-11-12 04:25:51 -05:00
|
|
|
(assign "${config.displays.d3}" workspaces3) ++
|
|
|
|
(assign "${config.displays.d4}" workspaces4);
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-11-07 18:17:51 -05:00
|
|
|
# Rules
|
|
|
|
defaultWorkspace = config.ws.w1;
|
2024-11-02 17:19:40 -04:00
|
|
|
|
2024-11-07 18:17:51 -05:00
|
|
|
window = {
|
|
|
|
border = config.look.border.int;
|
|
|
|
titlebar = false;
|
|
|
|
commands = [
|
|
|
|
# Scratchpads
|
|
|
|
{
|
|
|
|
criteria = { con_mark = "scratchpad"; };
|
|
|
|
command = ''floating enable, sticky enable, move scratchpad, mark borderless'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "gotop"; };
|
|
|
|
command = ''mark scratchpad'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "music"; };
|
|
|
|
command = ''mark scratchpad'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "sound"; };
|
|
|
|
command = ''mark scratchpad'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "com.github.wwmm.easyeffects"; };
|
|
|
|
command = ''mark scratchpad, opacity 0.9'';
|
|
|
|
}
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-11-07 18:17:51 -05:00
|
|
|
# Create a "Scratchpad" for apps I don't want to be seen when launched
|
|
|
|
{
|
|
|
|
criteria = { con_mark = "hiddenaway"; };
|
|
|
|
command = ''move scratchpad'';
|
|
|
|
}
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-11-07 18:17:51 -05:00
|
|
|
# Give apps that don't have them borders
|
|
|
|
{
|
|
|
|
criteria = { con_mark = "borderless"; };
|
|
|
|
command = ''border pixel ${config.look.border.string}'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "com.github.wwmm.easyeffects"; };
|
|
|
|
command = ''mark borderless'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { class = "steam"; };
|
|
|
|
command = ''mark borderless'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "swappy"; };
|
|
|
|
command = ''mark borderless'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "virt-manager"; };
|
|
|
|
command = ''mark borderless'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { window_role = "pop-up"; };
|
|
|
|
command = ''mark borderless'';
|
|
|
|
}
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-11-07 18:17:51 -05:00
|
|
|
# Floating or fullscreen rules
|
|
|
|
{
|
|
|
|
criteria = { app_id = "float"; };
|
|
|
|
command = ''floating enable'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { title = "^GlobalShot"; };
|
|
|
|
command = ''floating enable, fullscreen enable global'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
assigns = {
|
|
|
|
# Broconfig.wsers
|
|
|
|
"${config.ws.w1}" = [{ app_id = "MainBrowser"; }];
|
|
|
|
"${config.ws.w1a}" = [{ app_id = "AltBrowser"; }];
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-11-07 18:17:51 -05:00
|
|
|
# Communication
|
|
|
|
"${config.ws.w3a}" = [{ class = "zoom"; }];
|
|
|
|
"${config.ws.w7}" = [
|
|
|
|
{ app_id = "MiscBrowser"; }
|
|
|
|
{ app_id = "vesktop"; }
|
|
|
|
{ class = "vesktop"; }
|
|
|
|
];
|
|
|
|
"${config.ws.w8}" = [{ app_id = "org.gnome.Fractal"; }];
|
|
|
|
"${config.ws.w9}" = [{ app_id = "thunderbird"; }];
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-11-07 18:17:51 -05:00
|
|
|
# Etc
|
|
|
|
"${config.ws.w2}" = [
|
|
|
|
{ class = "steam"; }
|
|
|
|
{app_id = "heroic";}
|
|
|
|
];
|
|
|
|
"${config.ws.w2a}" = [{ app_id = "looking-glass-client"; }];
|
|
|
|
"${config.ws.w4a}" = [{ app_id = "com.obsproject.Studio"; }];
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
2024-11-07 18:17:51 -05:00
|
|
|
focus.newWindow = "focus";
|
2024-08-24 22:16:51 -04:00
|
|
|
};
|
|
|
|
}
|