csgo_handler
Program that detects when CSGO is launched or closed and runs a script.
This program only works on Linux as it depends on inotify.
Configuration
The configuration file location respects XDG, and will try the following paths, in this order:
$XDG_CONFIG_HOME/csgo_handler.yaml$XDG_CONFIG_HOME/csgo_handler.yml$XDG_CONFIG_HOME/csgo_handler/csgo_handler.yaml$XDG_CONFIG_HOME/csgo_handler/csgo_handler.yml$XDG_CONFIG_HOME/csgo_handler/config.yaml$XDG_CONFIG_HOME/csgo_handler/config.yml
NOTE:
$XDG_CONFIG_HOMEwill default to$HOME/.configon most systems.- A lazy match is used, meaning the first file that exists will be used.
Example configuration
---
# Path to the 'csgo.sh' script
script_path: /opt/games/steamapps/common/Counter-Strike Global Offensive/csgo.sh
# Action to run when game starts
start_script:
- /bin/bash
- -c
- nvidia-settings -a 'DigitalVibrance[DFP-5]=1023'
# Action to run when game stops
stop_script:
- /bin/bash
- -c
- nvidia-settings -a 'DigitalVibrance[DFP-5]=0'
Command-line parameters
The following parameters are present:
| Argument | Short argument | Explanation | Default | Example |
|---|---|---|---|---|
--config |
-c |
Override config path | None |
csgo-handler -c /etc/csgo_handler.yaml |
--config_path |
-C |
Search for config files within this folder | None |
csgo-handler -C /etc/csgo_handler |
--daemon |
-D |
Run as a daemon | False |
csgo-handler -D |
Metadata
Release files for csgo-handler 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| csgo_handler-1.1.2.tar.gz | 15.9 kB | Without provenance | Details for csgo_handler-1.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| csgo_handler-1.1.2-py3-none-any.whl | Python 3 | none | any | Details for csgo_handler-1.1.2-py3-none-any.whl |
Total release size: 32.2 kB
Release files / csgo_handler-1.1.2.tar.gz
| Download URL | csgo_handler-1.1.2.tar.gz |
|---|---|
| Size | 15.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
95e1cad10b2433d76390b423d8b3b4a39c6f5931ca3b5b1b9d489ad076c4803a
|
|
BLAKE2b-256 checksum How to use checksums |
f2024ab48b25f70fef32408ec82cc7c7891967e89802a58bf87bbf6ee56975b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Release files / csgo_handler-1.1.2-py3-none-any.whl
| Download URL | csgo_handler-1.1.2-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0f282efd1bd47fb6d59c294eed13cd60ba63aa719f167880220755be9f044182
|
|
BLAKE2b-256 checksum How to use checksums |
68d663bfdb45f4609dc33dfc9fa2b75a3d805626a599839f1a6b7e9872677684
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6
|
Security for csgo-handler 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.