A cross-platform audio player that plays sounds when specific keys are pressed. Originally written in Rust, now available in Go.
- Global keystroke listening for L-I-Z-A-R-D keys
- Audio playback when target keys are detected
- Cross-platform support (Linux, macOS, Windows)
- Background operation with graceful shutdown
# Run directly
go run main.go
# Or build and run
go build -o lizard-audio-player
./lizard-audio-player# Run directly
cargo run
# Or build and run
cargo build --release
./target/release/keystroke-audio-player- Ensure
audio/lizard.mp3exists in the same directory - Run the application
- Press any letter in "LIZARD" to trigger audio playback
- Press Ctrl+C to exit
- X11: Works with proper permissions (
/dev/input/event*access) - Wayland: Limited support due to security restrictions
- May require running with elevated privileges:
sudo go run main.go - Consider using X11 session for full functionality
- May require running with elevated privileges:
- Requires accessibility permissions for global keystroke capture
- Should work without additional setup
- May require Microsoft Visual C++ Redistributable
lizard/
├── main.go # Go implementation
├── src/main.rs # Rust implementation (legacy)
├── audio/lizard.mp3 # Audio file to play
├── go.mod # Go dependencies
├── Cargo.toml # Rust dependencies
└── README.md # This file
github.com/nathan-fiscaletti/key-logger- Cross-platform keyboard inputgithub.com/faiface/beep- Audio playback (when implemented)
rdev- Global input event listeningrodio- Audio playback and format decoding
# Try running with elevated privileges
sudo go run main.go- Switch to X11 session temporarily for testing
- Or run in X11 compatibility mode
- Global keystroke capture has security limitations on Wayland
- Verify
audio/lizard.mp3exists - Check system audio settings
- Ensure audio libraries are installed
- WAV
- MP3
- FLAC
- OGG
The Go version provides:
- Simpler dependency management
- Better cross-platform compatibility
- Easier deployment (single binary)
- More reliable keyboard input handling
To use the legacy Rust version, see WINDOWS_INSTRUCTIONS.md for Windows-specific build instructions.