hykilpikonna / hyfetch

🏳️‍🌈 🏳️‍⚧️ Neofetch with LGBTQ+ pride flags!
MIT License
1.27k stars 96 forks source link

Ability to list the number of games installed in steam (under packages) #152

Closed dnkmmr69420 closed 1 year ago

dnkmmr69420 commented 1 year ago

Describe the content

Under the packages section, there can be the number of games installed with steam. The package format in hyfetch would be called "steam"

Additional context

The way this will be done is by having hyfetch detect the ammount of folders either in ~/.local/share/Steam/steamapps/common or for the flatpak version ~/.var/app/com.valvesoftware.Steam/.local/share/Steam/steamapps/common Possibly ~/.steam/steam/steamapps/common as an alternative if the first one (not the flatpak one) does not work out.

hykilpikonna commented 1 year ago

Sure, why not. Just added!

image

Sid127 commented 11 months ago

I'm late to this party but this isn't very accurate since steam also puts proton, controller configs, and steam linux runtime in there. Also, it doesn't factor in games installed in non-default paths A better way would be parsing ~/.steam/steam/config/libraryfolders.vdf (or flatpak equivalent) for existing library folders, and using those with an added filter for Proton, SLR, and Controller configs.