Skip to content

gtk: implement custom audio bell #5326

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jcollie
Copy link
Member

@jcollie jcollie commented Jan 23, 2025

Fixes #2710

Adds support for custom audio bell notifications.

@mitchellh
Copy link
Contributor

Just want to note I'm going to not review this pending further discussion (I know there's a discussion open). One thing I noticed right away though if you care is this uses the old @hasDecl method of surface callbacks and we should instead switch to the apprt actions system.

@jcollie jcollie force-pushed the gtk-bell-2 branch 3 times, most recently from b4c992a to 76a0193 Compare January 25, 2025 01:10
@jcollie jcollie force-pushed the gtk-bell-2 branch 2 times, most recently from 7d8f74e to aaacbb6 Compare February 1, 2025 23:12
@jcollie jcollie requested review from a team as code owners February 11, 2025 18:25
@jcollie jcollie force-pushed the gtk-bell-2 branch 3 times, most recently from 32b8873 to 2b229af Compare February 13, 2025 14:11
@jcollie jcollie force-pushed the gtk-bell-2 branch 2 times, most recently from b24024f to c1150de Compare February 17, 2025 00:01
@NovaViper
Copy link

NovaViper commented Mar 3, 2025

Gave the PR and test and the bell works perfectly on NixOS 25.05 unstable (built from source)

Edit: Also I forgot to mention I was using KDE Plasma 6.3 on my system (with the Ocean sound theme) when I was testing the PR

@jcollie jcollie force-pushed the gtk-bell-2 branch 4 times, most recently from 800eae5 to 995ac4a Compare March 8, 2025 16:57
@jcollie jcollie marked this pull request as draft March 8, 2025 17:00
@jcollie
Copy link
Member Author

jcollie commented Mar 8, 2025

Converted to draft until #6622 is merged.

@jcollie jcollie force-pushed the gtk-bell-2 branch 2 times, most recently from c1698d6 to 081ee20 Compare March 10, 2025 12:04
@pluiedev pluiedev mentioned this pull request Apr 14, 2025
mitchellh added a commit that referenced this pull request Apr 14, 2025
This PR implements a more lightweight alternative to #5326 that contains
features that I personally think Just Make Sense for the bell.

No configs, no GStreamer stuff, just sane defaults to get us started.
@jcollie jcollie force-pushed the gtk-bell-2 branch 2 times, most recently from 49b9baa to d32f8ec Compare April 15, 2025 15:24
@jcollie jcollie changed the title gtk: implement audio bell gtk: implement custom audio bell Apr 15, 2025
@jcollie jcollie marked this pull request as ready for review April 15, 2025 15:51
std.debug.assert(std.fs.path.isAbsolute(pathname));
const media_file = gtk.MediaFile.newForFilename(pathname);

if (!optional) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: honestly if (required) { would make more sense and then you could just flip the boolean values above

Co-authored-by: Leah Amelia Chen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants