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

69 lines
1.5 KiB
Nix
Raw Permalink Normal View History

2025-04-11 09:20:46 +02:00
{ pkgs, ... }:
{
home.packages = [ pkgs.gamescope ];
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";
title = "Steam";
}
2025-03-27 02:56:33 +01:00
];
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$";
2025-03-28 23:34:51 +01:00
}
];
default-floating-position = {
x = 0;
y = 0;
2025-03-28 23:34:51 +01:00
relative-to = "bottom-right";
};
shadow.enable = false;
border.enable = false;
baba-is-float = false;
2025-04-11 09:08:18 +02:00
open-focused = false;
2025-03-28 23:34:51 +01:00
}
{
matches = [
{
title = "Guild Wars 2";
app-id = "steam_app_1284210";
}
];
border.enable = false;
shadow.enable = false;
}
{
matches = [
{
app-id = "vesktop";
title = "vesktop";
is-floating = true;
}
];
2025-04-11 09:20:46 +02:00
geometry-corner-radius =
let
val = 5.;
in
{
bottom-left = val;
bottom-right = val;
top-left = val;
top-right = val;
};
}
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";
};
}