nix-configs/modules/desktop/home/niri/quirks.nix

45 lines
955 B
Nix
Raw Normal View History

{...}: {
2025-03-27 02:56:33 +01:00
programs.niri.settings = {
window-rules = [
{
2025-03-28 23:34:51 +01:00
# handle steam grabbing focus 1000 times on startup
2025-03-27 02:56:33 +01:00
matches = [
{
app-id = "steam";
}
];
open-focused = false;
}
2025-03-28 23:34:51 +01:00
{
# position steam notifs correctly: https://github.com/YaLTeR/niri/wiki/Application-Issues
matches = [
{
app-id = "steam";
title = "^notificationtoasts_\\d+desktop$";
}
];
default-floating-position = {
x = 10;
y = 10;
relative-to = "bottom-right";
};
}
{
matches = [
{
title = "Guild Wars 2";
app-id = "steam_app_1284210";
}
];
border.enable = false;
shadow.enable = false;
}
2025-03-27 02:56:33 +01:00
];
2025-03-27 02:56:33 +01:00
# fix electron apps not doing wayland
environment.ELECTRON_OZONE_PLATFORM_HINT = "auto";
};
}