This commit is contained in:
kenji
2025-07-14 21:38:45 -05:00
parent 7588100a62
commit cb61d6ad3d
3 changed files with 29 additions and 8 deletions
+8 -8
View File
@@ -1,11 +1,11 @@
{pkgs, ...}: {
xdg.desktopEntries = {
steam = {
# The key 'steam' will result in the file 'steam.desktop'
name = "Steam";
genericName = "Game Platform";
comment = "Play and discuss games.";
exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam %U"; # The standard command to launch Steam
# exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam %U"; # The standard command to launch Steam
exec = "${pkgs.steam}/bin/steam %U"; # The standard command to launch Steam
terminal = false;
icon = "steam"; # Assumes the 'steam' icon is available in your icon theme
type = "Application";
@@ -13,23 +13,23 @@
mimeType = [
"x-scheme-handler/steam" # For handling steam:// links
];
# If you want to add actions (like launching in Big Picture mode)
actions = {
BigPicture = {
name = "Big Picture Mode";
exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam steam://open/bigpicture";
# exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam steam://open/bigpicture";
exec = "${pkgs.steam}/bin/steam steam://open/bigpicture";
};
Store = {
name = "Store";
exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam steam://store";
# exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam steam://store";
exec = "${pkgs.steam}/bin/steam steam://open/bigpicture";
};
Library = {
name = "Library";
exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam steam://library";
# exec = "${pkgs.mangohud}/bin/mangohud ${pkgs.steam}/bin/steam steam://library";
exec = "${pkgs.steam}/bin/steam steam://open/bigpicture";
};
};
# You might also want StartupWMClass if Steam has a specific window class name
# StartupWMClass = "Steam";
};
};
}