Skip to content

Commit 2ddecef

Browse files
mshareef-gitMiodecdependabot[bot]byseif21abulKhasim
authored
feat(sounds): add mechanical keyboard sounds (@mshareef-git) (#7764)
I really loved using sound effects in Monkeytype cause I don't have a mechanical keyboard, but there were limited options for sounds (just about 15 or so). That's why I added 14 new mechanical keyboard soundpacks. I previously contributed similar one called Wayvibes, so I wanted to bring that variety here. below is the summary: Added 14 new soundpacks (IDs click17 through click30) to frontend/static/sound/. Included Sounds: Akko Lavenders, CherryMX (Black, Blue, Brown, Red in ABS/PBT), EG Oreo, Kailh Box White, Razer Green, Shadowgun, Tealios v2, and Trust GXT 865. Standardized naming: Followed the existing clickXX_N.wav/mp3 format for all audio files to ensure consistency with the current codebase. Code Updates: Updated packages/schemas/src/configs.ts to whitelist new sound IDs. Mapped new audio assets in frontend/src/ts/controllers/sound-controller.ts. Added UI buttons in frontend/src/html/pages/settings.html and CLI aliases in frontend/src/ts/commandline/commandline-metadata.ts. Checks [ ] Adding quotes? [ ] Adding a language? [ ] Adding a theme? [ ] Adding a layout? [ ] Adding a font? [x] Check if any open issues are related to this PR; if so, be sure to tag them below. [x] Make sure the PR title follows the Conventional Commits standard. [x] Make sure to include your GitHub username prefixed with @ inside parentheses at the end of the PR title. --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Miodec <jack@monkeytype.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Seif Soliman <byseif21@gmail.com> Co-authored-by: Abul Khasim <117190708+abulKhasim@users.noreply.github.com> Co-authored-by: Ray Chen <54078384+rayzchen@users.noreply.github.com> Co-authored-by: Mateus Boergeson <mateusboergeson@gmail.com> Co-authored-by: mateus <andersenmats@proton.me> Co-authored-by: Nad Alaba <37968805+nadalaba@users.noreply.github.com> Co-authored-by: Leonabcd123 <156839416+Leonabcd123@users.noreply.github.com> Co-authored-by: ares?? <146799833+AzureNightlock@users.noreply.github.com> Co-authored-by: NaolMengistu <naolmengistu@outlook.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: DannyKoz123 <dbk@hundzor.org> Co-authored-by: Daniel Kozintsev <danielkozintsev@gmail.com> Co-authored-by: redfp <50246819+redfp@users.noreply.github.com> Co-authored-by: Albin David C <105530284+albindavidc@users.noreply.github.com> Co-authored-by: 14muffinz <135548153+14muffinz@users.noreply.github.com> Co-authored-by: Miodec <13181393+Miodec@users.noreply.github.com> Co-authored-by: Darshan Paccha <167102590+d1rshan@users.noreply.github.com> Co-authored-by: Dhruv <148534040+Dhruv1249@users.noreply.github.com> Co-authored-by: Oussama <196547922+lacunepoetique@users.noreply.github.com> Co-authored-by: Abdellah Ennajari <105159582+ennajari@users.noreply.github.com> Co-authored-by: Karthikeyan <75555469+J-Karthikeyan@users.noreply.github.com> Co-authored-by: Sharann Manojkumar <66624533+Sharann-del@users.noreply.github.com> Co-authored-by: Ma3ert <85261630+Ma3ert@users.noreply.github.com> Co-authored-by: Martin Namukombo <mastadict@gmail.com> Co-authored-by: Akshat Kashyap <kashyapakshat1312@gmail.com> Co-authored-by: Christian Fehmer <cfe@sexy-developer.com> Co-authored-by: Christian Fehmer <fehmer@users.noreply.github.com>
1 parent 8717447 commit 2ddecef

104 files changed

Lines changed: 40 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

frontend/src/html/pages/settings.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,6 +712,16 @@
712712
<button data-config-value="14">fist fight</button>
713713
<button data-config-value="15">rubber keys</button>
714714
<button data-config-value="16">fart</button>
715+
<button data-config-value="17">akko lavenders</button>
716+
<button data-config-value="18">cherrymx black abs</button>
717+
<button data-config-value="19">cherrymx black pbt</button>
718+
<button data-config-value="20">cherrymx blue abs</button>
719+
<button data-config-value="21">cherrymx blue pbt</button>
720+
<button data-config-value="22">cherrymx brown pbt</button>
721+
<button data-config-value="23">kalih box white</button>
722+
<button data-config-value="24">razer green</button>
723+
<button data-config-value="25">tealios v2</button>
724+
<button data-config-value="26">trust gxt</button>
715725
</div>
716726
</div>
717727
<div class="section fullWidth" data-config-name="playSoundOnError">

frontend/src/ts/commandline/commandline-metadata.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -393,6 +393,16 @@ export const commandlineConfigMetadata: CommandlineConfigMetadataObject = {
393393
"14": "fist fight",
394394
"15": "rubber keys",
395395
"16": "fart",
396+
"17": "akko lavenders",
397+
"18": "cherrymx black abs",
398+
"19": "cherrymx black pbt",
399+
"20": "cherrymx blue abs",
400+
"21": "cherrymx blue pbt",
401+
"22": "cherrymx brown pbt",
402+
"23": "kalih box white",
403+
"24": "razer green",
404+
"25": "tealios v2",
405+
"26": "trust gxt",
396406
};
397407
return map[value];
398408
},

frontend/src/ts/constants/sounds.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ export const soundsConfig: SoundConfigType = {
1717
14: { numberOfSounds: 8 },
1818
15: { numberOfSounds: 5 },
1919
16: { numberOfSounds: 8 },
20+
17: { numberOfSounds: 10 },
21+
18: { numberOfSounds: 10 },
22+
19: { numberOfSounds: 10 },
23+
20: { numberOfSounds: 10 },
24+
21: { numberOfSounds: 10 },
25+
22: { numberOfSounds: 10 },
26+
23: { numberOfSounds: 10 },
27+
24: { numberOfSounds: 10 },
28+
25: { numberOfSounds: 10 },
29+
26: { numberOfSounds: 10 },
2030
};
2131

2232
export type ClickSoundConfig = {
28.3 KB
Binary file not shown.
27.6 KB
Binary file not shown.
37.1 KB
Binary file not shown.
36.8 KB
Binary file not shown.
42 KB
Binary file not shown.
30 KB
Binary file not shown.
37.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)