Wayland: When the compositor supports the xdg-system-bell protocol use it to play the default bell sound

This commit is contained in:
Kovid Goyal
2025-04-16 15:48:51 +05:30
parent 4f6d97c143
commit 5d2e258c35
13 changed files with 48 additions and 13 deletions

View File

@@ -1039,7 +1039,8 @@ MP3 or WAV on macOS (NSSound).
opt('linux_bell_theme', '__custom', ctype='!bell_theme',
long_text='''
The XDG Sound Theme kitty will use to play the bell sound.
Defaults to the custom theme name specified in the
On Wayland, when the compositor supports it, it is asked to play the system default
bell sound. Otherwise, defaults to the custom theme name specified in the
:link:`XDG Sound theme specification <https://specifications.freedesktop.org/sound-theme-spec/latest/sound_lookup.html>,
falling back to the default freedesktop theme if it does not exist.
To change your sound theme desktop wide, create :file:`~/.local/share/sounds/__custom/index.theme` with the contents: