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