From 5299e5a2627c6f92618057454caca63d5bf2f542 Mon Sep 17 00:00:00 2001 From: Eriq Taing Date: Sun, 11 Oct 2026 23:24:11 -0400 Subject: [PATCH] Add script to ensure icons for steam apps are installed --- home.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/home.nix b/home.nix index 9684b38..68b5553 100644 --- a/home.nix +++ b/home.nix @@ -1,4 +1,4 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: { imports = [ @@ -72,6 +72,16 @@ ignition ]; + home.activation.fixSteamIcons = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + for f in ~/.local/share/applications/*.desktop; do + id=$(grep -Eo 'steam://rungameid/[0-9]+' "$f" | sed 's#.*/##') || true + [ -n "$id" ] || continue + last=$(tail -n1 "$f" || true) + want="StartupWMClass=steam_app_$id" + [ "$last" = "$want" ] || echo "$want" >> "$f" + done + ''; + # theming stylix = { enable = true;