Sound Configuration¶
kim can play sounds with notifications. You can use the system default sound or specify a custom sound file.
Sound Settings¶
In ~/.kim/config.json:
| Field | Type | Default | Description |
|---|---|---|---|
sound |
boolean | true |
Enable/disable sound globally |
sound_file |
string/null | null |
Path to custom sound file |
Supported Formats¶
| Platform | Supported Formats |
|---|---|
| Linux | wav, ogg, flac, mp3 (via paplay/aplay/ffplay/mpv) |
| macOS | wav, mp3, aiff, m4a, aac (via afplay) |
| Windows | wav only (via winsound/PowerShell), other formats via Windows Media Player |
Managing Sound via CLI¶
Show Current Configuration¶
Set Custom Sound File¶
The file is validated for existence and supported extension.
Revert to System Default¶
Test Current Sound¶
Plays the configured sound (custom or default).
Enable/Disable Sound¶
Platform-Specific Notes¶
Linux¶
Requires one of the following audio players:
- paplay (PulseAudio)
- aplay (ALSA)
- ffplay (FFmpeg)
- mpv
- cvlc (VLC)
Default system sound: canberra-gtk-play --id=bell or /usr/share/sounds/freedesktop/stereo/bell.oga.
macOS¶
Uses afplay (built-in). Default system sound: Glass.
Windows¶
- wav files: Uses
winsoundmodule (stdlib) or PowerShellSoundPlayer - Other formats: Uses Windows Media Player via PowerShell
- Default system sound: Windows default beep
Custom Sound Examples¶
Linux¶
macOS¶
Windows¶
Troubleshooting¶
Sound Not Playing¶
- Check if sound is enabled:
kim sound - Verify sound file exists and is readable
- Test with
kim sound --test - Check logs:
kim logs
Permission Issues¶
Ensure the sound file is readable by the user running kim.
Missing Audio Players (Linux)¶
Install one of the supported players: