Skip to content

Commit

Permalink
[+] Add steam as a package manager
Browse files Browse the repository at this point in the history
Closes #152
  • Loading branch information
hykilpikonna committed Jul 23, 2023
1 parent 04a6744 commit 05c60fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -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$)))

Expand Down

0 comments on commit 05c60fd

Please sign in to comment.