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 = {
|
2024-12-04 02:54:40 -05:00
|
|
|
defaultWorkspace = "1:${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"; };
|
2024-12-06 04:03:03 -05:00
|
|
|
command = ''floating enable, sticky enable, move scratchpad, mark giveborder'';
|
2024-11-07 18:17:51 -05:00
|
|
|
}
|
|
|
|
{
|
2024-12-06 04:03:03 -05:00
|
|
|
criteria = { app_id = "btop"; };
|
2024-11-07 18:17:51 -05:00
|
|
|
command = ''mark scratchpad'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "music"; };
|
|
|
|
command = ''mark scratchpad'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "sound"; };
|
|
|
|
command = ''mark 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
|
|
|
|
{
|
2024-12-06 04:03:03 -05:00
|
|
|
criteria = { con_mark = "giveborder"; };
|
2024-11-07 18:17:51 -05:00
|
|
|
command = ''border pixel ${config.look.border.string}'';
|
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { class = "steam"; };
|
2024-12-06 04:03:03 -05:00
|
|
|
command = ''mark giveborder'';
|
2024-11-07 18:17:51 -05:00
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "swappy"; };
|
2024-12-06 04:03:03 -05:00
|
|
|
command = ''mark giveborder'';
|
2024-11-07 18:17:51 -05:00
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { app_id = "virt-manager"; };
|
2024-12-06 04:03:03 -05:00
|
|
|
command = ''mark giveborder'';
|
2024-11-07 18:17:51 -05:00
|
|
|
}
|
|
|
|
{
|
|
|
|
criteria = { window_role = "pop-up"; };
|
2024-12-06 04:03:03 -05:00
|
|
|
command = ''mark giveborder'';
|
2024-11-07 18:17:51 -05:00
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
assigns = {
|
2024-12-01 01:44:12 -05:00
|
|
|
# Browsers
|
2024-12-04 02:54:40 -05:00
|
|
|
"1:${config.ws.w1}" = [{ app_id = "MainBrowser"; }];
|
|
|
|
"11:${config.ws.w1a}" = [{ app_id = "AltBrowser"; }];
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-11-07 18:17:51 -05:00
|
|
|
# Communication
|
2024-12-04 02:54:40 -05:00
|
|
|
"7:${config.ws.w7}" = [
|
2024-11-07 18:17:51 -05:00
|
|
|
{ app_id = "MiscBrowser"; }
|
|
|
|
{ app_id = "vesktop"; }
|
|
|
|
];
|
2024-12-04 02:54:40 -05:00
|
|
|
"8:${config.ws.w8}" = [
|
2024-12-01 01:44:12 -05:00
|
|
|
{ app_id = "org.gnome.Fractal"; }
|
|
|
|
{ app_id = "org.telegram.desktop"; }
|
|
|
|
];
|
2024-12-04 02:54:40 -05:00
|
|
|
"9:${config.ws.w9}" = [{ app_id = "thunderbird"; }];
|
2024-08-24 22:16:51 -04:00
|
|
|
|
2024-11-07 18:17:51 -05:00
|
|
|
# Etc
|
2024-12-04 02:54:40 -05:00
|
|
|
"2:${config.ws.w2}" = [
|
2024-11-07 18:17:51 -05:00
|
|
|
{ class = "steam"; }
|
2024-12-01 01:44:12 -05:00
|
|
|
{ app_id = "heroic"; }
|
2024-11-07 18:17:51 -05:00
|
|
|
];
|
2024-12-04 02:54:40 -05:00
|
|
|
"22:${config.ws.w2a}" = [{ app_id = "looking-glass-client"; }];
|
|
|
|
"44:${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
|
|
|
};
|
|
|
|
}
|