mirror of
https://github.com/donovanglover/nix-config.git
synced 2024-11-22 08:14:00 +01:00
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:
parent
64fc504b57
commit
319dc3480c
@ -7,6 +7,7 @@
|
|||||||
./hyprlang.nix
|
./hyprlang.nix
|
||||||
./hyprlock.nix
|
./hyprlock.nix
|
||||||
./kitty.nix
|
./kitty.nix
|
||||||
|
./srb2.nix
|
||||||
./zola.nix
|
./zola.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
20
overlays/srb2.nix
Normal file
20
overlays/srb2.nix
Normal 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" ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
});
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user