Skip to main content

Python implementation of Source Live Audio Mixer

Project description

PySLAM

CSGO implemenation of SLAM, written in python.

The binaries pyslam and pyslam-ytdl are provided.

pyslam-ytdl will download songs into mp3 format from YouTube to the configured music directory.

Configuration

Configuration location

The configuration file location respects XDG, and will try the following paths, in this order:

  • $XDG_CONFIG_HOME/slam.yaml
  • $XDG_CONFIG_HOME/slam.yml
  • $XDG_CONFIG_HOME/slam/slam.yaml
  • $XDG_CONFIG_HOME/slam/slam.yml
  • $XDG_CONFIG_HOME/slam/config.yaml
  • $XDG_CONFIG_HOME/slam/config.yml

NOTE:

  • $XDG_CONFIG_HOME will default to $HOME/.config on most systems.
  • PySLAM uses a lazy match. This means the first file from the above list which exists will be used.

Example configuration

---

# Key which will be bound to play music
# If not specified, will default to mouse3
bindkey: KP_END

# Path in which music will be stored
# If not specified, will default to $XDG_DATA_HOME/slam/music
# NOTE: In older versions, a key named 'paths' which accepted a list was used
# This is now deprecated.
music:
  path: /home/alex/Documents/slam

csgo:

  # Path to game folder
  # This value is mandatory
  game: /opt/games/steamapps/common/Counter-Strike Global Offensive

  # List of paths to which the pyslam.cfg file will be written
  # If unspecified, will write to csgo/cfg folder under the game folder specified above
  # i.e. in this config: /opt/games/steamapps/common/Counter-Strike Global Offensive/csgo/cfg
  user_profile:
    - /opt/games/steamapps/common/Counter-Strike Global Offensive/csgo/cfg

Command-line parameters

The following parameters are present:

Argument Short argument Explanation Default Example
--config -c Override config path None PySLAM -c /etc/pyslam.yaml
--printdir -D Print music directory as configured False PySLAM -D

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PySLAM-1.2.0.tar.gz (28.0 kB view hashes)

Uploaded Source

Built Distribution

PySLAM-1.2.0-py3-none-any.whl (30.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page