Skip to content

Commit 40963cd

Browse files
feat: add new completion sound effects (#1609)
1 parent c9184bc commit 40963cd

10 files changed

Lines changed: 34 additions & 1 deletion

File tree

4.29 KB
Binary file not shown.
2.79 KB
Binary file not shown.
1.57 KB
Binary file not shown.
3.99 KB
Binary file not shown.
4.68 KB
Binary file not shown.
3.51 KB
Binary file not shown.
4.26 KB
Binary file not shown.

apps/code/src/renderer/features/settings/components/sections/GeneralSettings.tsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,13 @@ export function GeneralSettings() {
304304
<Select.Item value="danilo">I'm ready</Select.Item>
305305
<Select.Item value="revi">Cute noise</Select.Item>
306306
<Select.Item value="meep">Meep</Select.Item>
307+
<Select.Item value="bubbles">Bubbles</Select.Item>
308+
<Select.Item value="drop">Drop</Select.Item>
309+
<Select.Item value="knock">Knock</Select.Item>
310+
<Select.Item value="ring">Ring</Select.Item>
311+
<Select.Item value="shoot">Shoot</Select.Item>
312+
<Select.Item value="slide">Slide</Select.Item>
313+
<Select.Item value="switch">Switch</Select.Item>
307314
</Select.Content>
308315
</Select.Root>
309316
{completionSound !== "none" && (

apps/code/src/renderer/features/settings/stores/settingsStore.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,19 @@ import { persist } from "zustand/middleware";
77
export type DefaultRunMode = "local" | "cloud" | "last_used";
88
export type LocalWorkspaceMode = "worktree" | "local";
99
export type SendMessagesWith = "enter" | "cmd+enter";
10-
export type CompletionSound = "none" | "guitar" | "danilo" | "revi" | "meep";
10+
export type CompletionSound =
11+
| "none"
12+
| "guitar"
13+
| "danilo"
14+
| "revi"
15+
| "meep"
16+
| "bubbles"
17+
| "drop"
18+
| "knock"
19+
| "ring"
20+
| "shoot"
21+
| "slide"
22+
| "switch";
1123
export type AgentAdapter = "claude" | "codex";
1224
export type AutoConvertLongText = "off" | "1000" | "2500" | "5000" | "10000";
1325
export type DefaultInitialTaskMode = "plan" | "last_used";

apps/code/src/renderer/utils/sounds.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,28 @@
11
import type { CompletionSound } from "@features/settings/stores/settingsStore";
2+
import bubblesUrl from "@renderer/assets/sounds/bubbles.mp3";
23
import daniloUrl from "@renderer/assets/sounds/danilo.mp3";
4+
import dropUrl from "@renderer/assets/sounds/drop.mp3";
35
import guitarUrl from "@renderer/assets/sounds/guitar.mp3";
6+
import knockUrl from "@renderer/assets/sounds/knock.mp3";
47
import meepUrl from "@renderer/assets/sounds/meep.mp3";
58
import reviUrl from "@renderer/assets/sounds/revi.mp3";
9+
import ringUrl from "@renderer/assets/sounds/ring.mp3";
10+
import shootUrl from "@renderer/assets/sounds/shoot.mp3";
11+
import slideUrl from "@renderer/assets/sounds/slide.mp3";
12+
import switchUrl from "@renderer/assets/sounds/switch.mp3";
613

714
const SOUND_URLS: Record<Exclude<CompletionSound, "none">, string> = {
815
guitar: guitarUrl,
916
danilo: daniloUrl,
1017
revi: reviUrl,
1118
meep: meepUrl,
19+
bubbles: bubblesUrl,
20+
drop: dropUrl,
21+
knock: knockUrl,
22+
ring: ringUrl,
23+
shoot: shootUrl,
24+
slide: slideUrl,
25+
switch: switchUrl,
1226
};
1327

1428
let currentAudio: HTMLAudioElement | null = null;

0 commit comments

Comments
 (0)