{"id":31389849,"url":"https://github.com/rivethorn/hyprsonic","last_synced_at":"2026-05-14T23:07:50.981Z","repository":{"id":314973932,"uuid":"1057576385","full_name":"rivethorn/hyprsonic","owner":"rivethorn","description":"A small app to make keyboard sounds on Hyprland","archived":false,"fork":false,"pushed_at":"2025-09-15T23:51:36.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-16T01:19:11.538Z","etag":null,"topics":["hyprland","keyboard","linux","linux-app","mechanical-keyboard","python","script","udev","wayland"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rivethorn.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-15T23:29:27.000Z","updated_at":"2025-09-15T23:51:39.000Z","dependencies_parsed_at":"2025-09-16T01:29:30.544Z","dependency_job_id":null,"html_url":"https://github.com/rivethorn/hyprsonic","commit_stats":null,"previous_names":["rivethorn/hyprsonic"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/rivethorn/hyprsonic","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rivethorn%2Fhyprsonic","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rivethorn%2Fhyprsonic/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rivethorn%2Fhyprsonic/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rivethorn%2Fhyprsonic/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rivethorn","download_url":"https://codeload.github.com/rivethorn/hyprsonic/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rivethorn%2Fhyprsonic/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277450956,"owners_count":25819972,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-28T02:00:08.834Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hyprland","keyboard","linux","linux-app","mechanical-keyboard","python","script","udev","wayland"],"created_at":"2025-09-29T00:47:23.401Z","updated_at":"2025-09-29T00:47:24.447Z","avatar_url":"https://github.com/rivethorn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Hyprsonic\n\n---------\n\nHyprsonic is a bespoke low-latency keyboard sound player for Linux, specifically Hyprland. It listens to a keyboard device using evdev and plays short keypress/keyup sounds via miniaudio. Sounds are mixed in-process so multiple key events can overlap with minimal latency.\n\n## Requirements\n- Linux (evdev input system)\n- Python 3.8+\n- See `requirements.txt` for dependencies; main packages:\n  - `evdev` (for keyboard events)\n  - `miniaudio` (for decoding and playback)\n\n## Installation\n1. Clone or copy the repository to a local folder.\n2. Enter the venv.\npython -m venv venv\nsource venv/bin/activate.fish\n\n3. Install dependencies.\npip install -r requirements.txt\n\n4. Place your WAV sound files in the directory `~/.local/share/hyprsonic/` (create it if missing). The program expects the following files (fallbacks are listed in-code):\n\n- `fallback.wav` (regular key down)\n- `fallback-up.wav` (regular key up)\n- `fallback2.wav` / `fallback2-up.wav` (alternate sounds)\n- `enter.wav` / `enter-up.wav`\n- `backspace.wav` / `backspace-up.wav`\n- `spacebar.wav` / `spacebar-up.wav`\n\nNote: WAV files should preferably be 16-bit PCM. The script will decode and resample to 48 kHz stereo signed 16-bit during load.\n\n## Usage\nRun the main script as root or with appropriate permissions to read input devices (you may need to run with sudo or add yourself to the `input` group):\npython hyprsonic.py\n\nOr chmod +x and simply run:\n./hyprsonic.py\n\nOn startup the script prints the chosen keyboard device path and starts audio playback. Press Ctrl+C to stop.\n\n## Configuration\n- You can change the base path where the script looks for audio files by editing the `BASE` variable near the top of `hyprsonic.py`.\n- Output sample rate, channels and format can be adjusted via the `OUT_SAMPLE_RATE`, `OUT_CHANNELS` and `OUT_FORMAT` constants.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frivethorn%2Fhyprsonic","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frivethorn%2Fhyprsonic","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frivethorn%2Fhyprsonic/lists"}