Giter Site home page Giter Site logo

Adding custom games about steam-presence HOT 7 CLOSED

justtemmie avatar justtemmie commented on May 28, 2024
Adding custom games

from steam-presence.

Comments (7)

alba4k avatar alba4k commented on May 28, 2024 1

I still can't get over its syntax :P

exactly which part?

@JustTemmie I was referring to rust in general, nothing related to your program, which has a great source!

I love how you use comments to explain the content. I basically use mine to ashame myself or the user

as for local games, that sounds great! p.s. chad prismlauncher user

from steam-presence.

JustTemmie avatar JustTemmie commented on May 28, 2024

so the "CUSTOM_GAME_OVERWRITE" section doesn't detect anything running locally, it's more just you can manually set the script to any game you want. the script can't actually detect anything running locally, though that is something i want to look into in the future

in addition games.txt isn't something the script has ever used and that config file is nothing like what this script uses, wrong format and everything :p

as for the install script, i actually wrote one the other day i just forgot to push it - unsure about how well it works. I'll go ahead and push it, if you want to test it go ahead, all pull request are welcome no matter how much you change

P.S you should probably regenerate your steam grid and steam api keys since they're leaked in the screenshot :p

from steam-presence.

alba4k avatar alba4k commented on May 28, 2024

Thanks, regenereted every key. :)

Also, that's interesting. After looking after it, I found what those old config files are! They're from thisother project, which happens to have the same name! huh. One more reason I probably confused the two.

I'm guessing you probably know the owner, since in their readme they state or use Temmie's "869994714093465680" when talking about the application ID! Maybe just a "I do it in Python, you go with Rust" challenge?

This is also why I tought external processes were supported, and where the games.txt came from.
immagine

I think I will keep using your version of this going since I prefer the configuration method (python's json library is great!)

In case you care, here is my 2am-written install script. Yours looks better for sure!

#!/bin/bash

echo -e "\e[33m>>\e[0m Installing necessary python dependencies"
if python3 -m pip install -r requirements.txt; then
    echo -e "\e[32m>>\e[0m Success!\n"
fi

mkdir -p ~/.config/steam-presence

if cp --backup config.json icons.txt main.py ~/.config/steam-presence; then
    echo -e "\e[32m>>\e[0m Copied your configuration to $HOME/.config/steam-presence!"
fi

if echo "[Unit]
Description=Discord rich presence from Steam on Linux
Documentation=https://github.com/JustTemmie/steam-presence

[Service]
ExecStart=/home/$(whoami)/.config/steam-presence/steam-presence/main.py
Type=simple
Nice=19
SuccessExitStatus=130
NoNewPrivileges=true
ProtectSystem=strict
ReadWritePaths=/home/$(whoami)/.config/steam-presence/steam-presence

[Install]
WantedBy=default.target" > ~/.config/systemd/user/steam-presence.service
then
    echo -e "\e[32m>>\e[0m Created a systemd service in $HOME/.config/systemd/user/steam-presence.service!"
    if systemctl --user enable --now ~/.config/systemd/user/steam-presence.service
    then
        echo -e "\e[32m>>\e[0m Enabled and started the systemd service!"
    fi
fi

You forgot to push yours, and I forgot to open a pull request for mine. Seems fair to me, ahah

from steam-presence.

Radiicall avatar Radiicall commented on May 28, 2024

We do know each other but I just wanted something for myself that doesnt use as many resources as python, also i just love writing in rust haha.

from steam-presence.

alba4k avatar alba4k commented on May 28, 2024

I still can't get over its syntax :P

from steam-presence.

JustTemmie avatar JustTemmie commented on May 28, 2024

I still can't get over its syntax :P

exactly which part?

from steam-presence.

JustTemmie avatar JustTemmie commented on May 28, 2024

p.s i just added support for locally running games, it's explained fairly alright in the latest release https://github.com/JustTemmie/steam-presence/releases/tag/v1.6 if that helps you out

from steam-presence.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.