Plugin

NotificationVolume

Save your ears and set a separate volume for notifications and in-app sounds

Notifications Voice
index.ts
Download

Source

src/plugins/notificationVolume/index.ts
1/*
2 * FiveCord — a Discord client mod
3 * Copyright (c) 2025 FiveCord
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
7import { definePluginSettings } from "@api/Settings";
8import { Devs } from "@utils/constants";
9import definePlugin, { OptionType } from "@utils/types";
10
11const settings = definePluginSettings({
12 notificationVolume: {
13 type: OptionType.SLIDER,
14 description: "Notification volume",
15 markers: [0, 25, 50, 75, 100],
16 default: 100,
17 stickToMarkers: false
18 }
19});
20
21export default definePlugin({
22 name: "NotificationVolume",
23 description: "Save your ears and set a separate volume for notifications and in-app sounds",
24 tags: ["Notifications", "Voice"],
25 authors: [Devs.philipbry],
26 settings,
27 patches: [
28 {
29 find: "ensureAudio(){",
30 replacement: {
31 match: /(?=Math\.min\(\i\.\i\.getOutputVolume\(\)\/100)/g,
32 replace: "$self.settings.store.notificationVolume/100*"
33 },
34 },
35 ],
36});
37