Add script to ensure icons for steam apps are installed

This commit is contained in:
Eriq Taing
2026-10-11 23:24:11 -04:00
parent f3b1d5d7d1
commit 5299e5a262
+11 -1
View File
@@ -1,4 +1,4 @@
{ pkgs, ... }: { pkgs, lib, ... }:
{ {
imports = [ imports = [
@@ -72,6 +72,16 @@
ignition 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 # theming
stylix = { stylix = {
enable = true; enable = true;