mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00

A much requested feature, this allows for providing custom scripts in the config file. An example in the man page is below and would trigger both a system notification, and allow control over a background crypto mining script automatically in gamemode. [custom] ; Custom scripts (executed using the shell) when gamemode starts and ends start=notify-send "GameMode started" /home/me/bin/stop_ethmining.sh end=notify-send "GameMode ended" /home/me/bin/start_ethmining.sh Scripts are run with system() and do not have any special privilages, as with the rest of the daemon, custom scripts that require root will need their own permissions set up externally. This commit also renames two defines as they needed to be moved to the public interface.