Add script to ensure icons for steam apps are installed
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user