Add new plugin: Discord Voice - #367
Conversation
|
did you just copy this PR body from another pr lol |
ahh lol thanks for the reminder |
The bridge searches the shared /tmp directory for discord-ipc-* sockets and connects to the first existing candidate A different local user can pre-bind /tmp/discord-ipc-0, emulate Discord's READY response, and receive the token when |
- discover Discord IPC sockets for Snap installations - confirm subscriptions only after Discord acknowledgements - prevent duplicate requests and clean up failed pending requests - gracefully stop stalled bridges before restarting - bump plugin version to 0.3.2
Plugin
raycursive/discord-voiceplugin.toml)What it does
Discord Voice adds a bar widget, panel, and background bridge for monitoring and controlling a local Discord desktop voice session from Noctalia. It exposes the active server and channel, connection latency, speaking state, participant volume, mute/deafen/hang-up controls, input volume, and recent or favorite channel shortcuts.
The bridge uses Discord's local RPC interface and requests only the
rpc,rpc.voice.read, andrpc.voice.writescopes.External dependencies
python33.10 or newer runs the local Discord RPC bridge and its command client.discordis the local Discord desktop client. The configured executable may be spawned to launch Discord or open a channel deep link.https://streamkit.discord.com/overlay/token, and participant avatars may be downloaded fromhttps://cdn.discordapp.com. No downloaded content is executed.token.jsonandchannels.jsonunder Noctalia's state directory, caches participant avatars under the XDG cache directory, and creates a per-user control socket under the runtime directory with a/tmpfallback. The README documents permissions and locations.Testing
Enabled the plugin from a local path source on Niri and verified that the
bridgeservice starts.Opened the panel from the bar widget and with
noctalia msg panel-toggle raycursive/discord-voice:panel.Verified disconnected and connected panel states, compact participant rows, mute/deafen/hang-up controls, speaking indicators, and participant volume sliders.
Exercised the
refreshanddumpservice IPC events, stable-ID favorite/unfavorite/join dispatch, and private state-file permissions.Ran the repository manifest validator and
noctalia plugins lint discord-voicewith zero errors or warnings.Tested on Niri
Tested on Hyprland
Tested on Sway
Tested on another compositor:
Noctalia version tested against:
v5.0.0 (5.0.0_beta.8-1-dirty)Plugin API level: 9
Screenshots / Videos
The thumbnail was produced with the official generator using an AI-assisted, layout-faithful rendering based on the live Niri panel capture.
Checklist
idafter the/inplugin.tomlexactly.plugin.toml,README.md,thumbnail.webp, andtranslations/en.json.README.mdfollows theREADME template, documents
every entry id and dependency, and includes exact panel IPC commands and launcher prefixes where applicable.
thumbnail.webpwith the thumbnail generator.versionfollows semver and is bumped in this PR;plugin_apiis the oldest API level this plugin requires.understand that language well enough to review and maintain it (no unreviewed machine/LLM translations).
catalog.toml; CI generates it.Code review attestation
Plugins run as trusted, unsandboxed Luau in the user's session. Confirm:
licensedeclared inplugin.toml.