From 05c60fddfd54fc6e3dc144385edc550606b09505 Mon Sep 17 00:00:00 2001 From: Azalea Date: Sun, 23 Jul 2023 13:51:13 -0700 Subject: [PATCH] [+] Add steam as a package manager Closes #152 --- neofetch | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/neofetch b/neofetch index 7c96260a..37ed690a 100755 --- a/neofetch +++ b/neofetch @@ -2028,6 +2028,16 @@ get_packages() { shopt -u nullglob } + # Steam games + STEAM_P=".local/share/Steam/steamapps/common" + if [[ -d "$HOME/$STEAM_P" ]]; then + manager=steam && dir "$HOME/$STEAM_P/*/" + elif [[ -d "$HOME/.var/app/com.valvesoftware.Steam/$STEAM_P" ]]; then + manager=steam && dir "$HOME/.var/app/com.valvesoftware.Steam/$STEAM_P/*/" + elif [[ -d "$HOME/.steam/steam/steamapps/common" ]]; then + manager=steam && dir "$HOME/.steam/steam/steamapps/common/*/" + fi + # Other (Needs complex command) has kpm-pkg && ((packages+=$(kpm --get-selections | grep -cv deinstall$)))