Skip to content

v1.3.1: Config Rewrite

Choose a tag to compare

@North-West-Wind North-West-Wind released this 01 Jan 05:36

This release doesn't add any new features to the soundboard, but a tidy-up for the config file.

Config

  • The config file has been changed from config.toml to config.json (likely under the directory ~/.config/cls/)
    • An auto config migration system is also added, so don't worry about it
    • Although it's recommended to make a backup of your previous config just in case
  • The config data is structured in a more compact way, besides minifying the output JSON
    • For example, my config file went from ~6.5KiB to ~2.9KiB
    • Configuring per-file settings (e.g. hotkey, file ID, volume) is now more efficient in terms of storage
  • Changed config library from confy to config + dirs

Optimization

This release introduced some insignificant size optimizations, but I'm putting them here anyway.

  • Replaced pulsectl-rs and libpulse-binding with a single pactl command
    • Yes, this uses external dependency, but there are parts that already use the same command anyway so there's not an increase in external dependency
  • Modified Cargo.toml to output executable with smaller size

Checksum

SHA256 for the cls binary file:
06e1187e63d0aab508547fd43c98331e72eccac32b32d881f8cedf948cd702c1