diff --git a/macos/Sources/App/macOS/AppDelegate.swift b/macos/Sources/App/macOS/AppDelegate.swift index 9a6eab47b..a723d015a 100644 --- a/macos/Sources/App/macOS/AppDelegate.swift +++ b/macos/Sources/App/macOS/AppDelegate.swift @@ -724,6 +724,10 @@ class AppDelegate: NSObject, } @objc private func ghosttyBellDidRing(_ notification: Notification) { + if (ghostty.config.bellFeatures.contains(.system)) { + NSSound.beep() + } + if (ghostty.config.bellFeatures.contains(.attention)) { // Bounce the dock icon if we're not focused. NSApp.requestUserAttention(.informationalRequest) diff --git a/src/config/Config.zig b/src/config/Config.zig index 505381977..8ba1e47db 100644 --- a/src/config/Config.zig +++ b/src/config/Config.zig @@ -2646,7 +2646,9 @@ keybind: Keybinds = .{}, /// This could result in an audiovisual effect, a notification, or something /// else entirely. Changing these effects require altering system settings: /// for instance under the "Sound > Alert Sound" setting in GNOME, -/// or the "Accessibility > System Bell" settings in KDE Plasma. (GTK only) +/// or the "Accessibility > System Bell" settings in KDE Plasma. +/// +/// On macOS, this plays the system alert sound. /// /// * `audio` ///