overlays(srb2): add startupWMClass to desktop item

Fixes an issue with the application showing up as a question mark after
being launched in ironbar.
This commit is contained in:
Donovan Glover 2024-03-16 14:24:29 -04:00
parent 64fc504b57
commit 319dc3480c
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 21 additions and 0 deletions

View File

@ -7,6 +7,7 @@
./hyprlang.nix
./hyprlock.nix
./kitty.nix
./srb2.nix
./zola.nix
];
}

20
overlays/srb2.nix Normal file
View File

@ -0,0 +1,20 @@
{
nixpkgs.overlays = [
(final: prev: {
srb2 = prev.srb2.overrideAttrs (oldAttrs: {
desktopItems = [
(prev.makeDesktopItem rec {
name = "Sonic Robo Blast 2";
exec = oldAttrs.pname;
icon = oldAttrs.pname;
comment = oldAttrs.meta.description;
desktopName = name;
genericName = name;
startupWMClass = ".srb2-wrapped";
categories = [ "Game" ];
})
];
});
})
];
}