gamemode icon indicating copy to clipboard operation
gamemode copied to clipboard

Custom scripts per game

Open vinifmor opened this issue 4 years ago • 5 comments

Hello, the current gamemode version already supports custom scripts which is great. A nice add would allow the user to define specific scripts for a given game. I have an use case where I have to enable the full Nvidia's pipeline for a given game, but this feature has a negative impact on other titles.

vinifmor avatar Feb 14 '20 13:02 vinifmor

hi, I also use custom start and stop scripts. as you already know no command line args can be passed to those start scripts, but you can grab the command line args which are directly given to gamemoderun. in order to call gamespecific commands you could use a selfrolled gamemoderun (lets call it gmr here) which basically greps "" from "$@" and does custom gamespecific stuff when found and then calls gamemoderun "$@". or just duplicate gamemoderun to gmr and modify it directly. I think that's what I will do now :) good luck and hf!

frostworx avatar May 04 '20 03:05 frostworx

me again. I'm currently working on "steamtinkerlaunch" - short "stl" which does exactly that and much more. https://github.com/frostworx/steamtinkerlaunch major commit maybe later today

frostworx avatar Jul 02 '20 08:07 frostworx

@frostworx it seems promising. I'm going to try it.

vinifmor avatar Jul 02 '20 15:07 vinifmor

n1! hf, @vinifmor!

frostworx avatar Jul 02 '20 15:07 frostworx

An easy and flexible solution would be to provide the custom scripts with an environment variable that contains the gamemoderun parameters, like GAMEMODERUN_PARAMS="mangohud foo-steam-game".

Looks like the run_external_process function needs to be extended for that functionality.

hashworks avatar Oct 10 '22 16:10 hashworks