93 lines
2.5 KiB
Nix
93 lines
2.5 KiB
Nix
{ config, ... }:
|
|
{
|
|
wayland.windowManager.sway.config = {
|
|
defaultWorkspace = "1:${config.ws.w1}";
|
|
|
|
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'';
|
|
}
|
|
|
|
# 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'';
|
|
}
|
|
|
|
# Floating or fullscreen rules
|
|
{
|
|
criteria = { app_id = "float"; };
|
|
command = ''floating enable'';
|
|
}
|
|
{
|
|
criteria = { title = "^GlobalShot"; };
|
|
command = ''floating enable, fullscreen enable global'';
|
|
}
|
|
];
|
|
};
|
|
assigns = {
|
|
# Browsers
|
|
"1:${config.ws.w1}" = [{ app_id = "MainBrowser"; }];
|
|
"11:${config.ws.w1a}" = [{ app_id = "AltBrowser"; }];
|
|
|
|
# Communication
|
|
"7:${config.ws.w7}" = [
|
|
{ app_id = "MiscBrowser"; }
|
|
{ app_id = "vesktop"; }
|
|
{ class = "vesktop"; }
|
|
];
|
|
"8:${config.ws.w8}" = [
|
|
{ app_id = "org.gnome.Fractal"; }
|
|
{ app_id = "org.telegram.desktop"; }
|
|
];
|
|
"9:${config.ws.w9}" = [{ app_id = "thunderbird"; }];
|
|
|
|
# Etc
|
|
"2:${config.ws.w2}" = [
|
|
{ class = "steam"; }
|
|
{ app_id = "heroic"; }
|
|
];
|
|
"22:${config.ws.w2a}" = [{ app_id = "looking-glass-client"; }];
|
|
"44:${config.ws.w4a}" = [{ app_id = "com.obsproject.Studio"; }];
|
|
};
|
|
focus.newWindow = "focus";
|
|
};
|
|
}
|