[PR #11511] [MERGED] Enable changing the bell sound #28624

Open
opened 2026-01-31 09:29:43 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/microsoft/terminal/pull/11511
Author: @zadjii-msft
Created: 10/14/2021
Status: ✅ Merged
Merged: 1/6/2022
Merged by: @undefined

Base: main ← Head: dev/migrie/fhl/honk


📝 Commits (10+)

  • be11388 it honks
  • 8fbd32d many honks
  • 4c4fde9 oh yea, it was that easy
  • cc9487e allow a single item as a list with length 1
  • 0bb42ef Merge remote-tracking branch 'origin/main' into dev/migrie/fhl/honk
  • 2c895b2 it's a singleton now
  • 9f4ed0e allow env vars in paths too
  • 684956d thanks for nothing VS
  • 2eda14c Merge remote-tracking branch 'origin/main' into dev/migrie/fhl/honk
  • fb1ed58 Experiment with removing the static MediaPlayer

📊 Changes

8 files changed (+87 additions, -7 deletions)

View changed files

📝 src/cascadia/TerminalApp/Pane.cpp (+60 -2)
📝 src/cascadia/TerminalApp/Pane.h (+4 -0)
📝 src/cascadia/TerminalApp/pch.h (+3 -0)
📝 src/cascadia/TerminalSettingsModel/JsonUtils.h (+12 -3)
📝 src/cascadia/TerminalSettingsModel/MTSMSettings.h (+2 -1)
📝 src/cascadia/TerminalSettingsModel/Profile.cpp (+4 -0)
📝 src/cascadia/TerminalSettingsModel/Profile.idl (+1 -0)
📝 src/cascadia/WindowsTerminal/AppHost.cpp (+1 -1)

📄 Description

Summary of the Pull Request

Adds a per-profile setting for setting the audio sound for the bell. The setting is bellSound, it accepts a path. We'll use the file at that path as the sound for the bell. If it doesn't exist, then oh well, so sound for you.

It'll also secretly accept an array of paths. If you provide an array, it will pick one at random.

PR Checklist

Validation Steps Performed

I'm not suggesting that anyone go to this post and download a zip full of honk.mp3s. I'm definitely not suggesting you add it to your settings like

"bellSound": [
    "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk1.mp3",
    "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk2.mp3",
    "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk3.mp3",
    "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk4.mp3",
    "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk-muffled1.mp3",
    "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk-muffled2.mp3",
    "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk-muffled3.mp3"
]

No, don't do that.

https://user-images.githubusercontent.com/18356694/137389503-91e43dba-8f7b-4078-9d35-23ceb2ac9432.mp4

  • It surprisingly works elevated
  • We should probably accept env vars in these paths
  • We may only want one MediaPlayer per terminal, rather than one per pane
  • We may want to validate the paths, and discard ones that don't exist.
    • alternatively, meh

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/microsoft/terminal/pull/11511 **Author:** [@zadjii-msft](https://github.com/zadjii-msft) **Created:** 10/14/2021 **Status:** ✅ Merged **Merged:** 1/6/2022 **Merged by:** [@undefined](undefined) **Base:** `main` ← **Head:** `dev/migrie/fhl/honk` --- ### 📝 Commits (10+) - [`be11388`](https://github.com/microsoft/terminal/commit/be11388a04c1abd8b5d7474f2fa664f41f133053) it honks - [`8fbd32d`](https://github.com/microsoft/terminal/commit/8fbd32d3c357025574a3eb41bb12a65d43d096c0) many honks - [`4c4fde9`](https://github.com/microsoft/terminal/commit/4c4fde9da36d1faf9391464db7ea90bd95114a5d) oh yea, it was that easy - [`cc9487e`](https://github.com/microsoft/terminal/commit/cc9487e2b8dfec7693b11fe5623a57dd0c03ab02) allow a single item as a list with length 1 - [`0bb42ef`](https://github.com/microsoft/terminal/commit/0bb42efc0d48b6f4039ea020e31521f55d8eec1d) Merge remote-tracking branch 'origin/main' into dev/migrie/fhl/honk - [`2c895b2`](https://github.com/microsoft/terminal/commit/2c895b2c18c5e0833747f121b4bd2bee4e882940) it's a singleton now - [`9f4ed0e`](https://github.com/microsoft/terminal/commit/9f4ed0ee18c23930e8503a4fe7ea09c4ec1859b7) allow env vars in paths too - [`684956d`](https://github.com/microsoft/terminal/commit/684956d848fabc9e971813606d905c66ae14894d) thanks for nothing VS - [`2eda14c`](https://github.com/microsoft/terminal/commit/2eda14cc1b3e385c99615060e5edc9f8ceb2f44f) Merge remote-tracking branch 'origin/main' into dev/migrie/fhl/honk - [`fb1ed58`](https://github.com/microsoft/terminal/commit/fb1ed58d37ada60f4f3b4071d3117c9317ca47a4) Experiment with removing the static MediaPlayer ### 📊 Changes **8 files changed** (+87 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `src/cascadia/TerminalApp/Pane.cpp` (+60 -2) 📝 `src/cascadia/TerminalApp/Pane.h` (+4 -0) 📝 `src/cascadia/TerminalApp/pch.h` (+3 -0) 📝 `src/cascadia/TerminalSettingsModel/JsonUtils.h` (+12 -3) 📝 `src/cascadia/TerminalSettingsModel/MTSMSettings.h` (+2 -1) 📝 `src/cascadia/TerminalSettingsModel/Profile.cpp` (+4 -0) 📝 `src/cascadia/TerminalSettingsModel/Profile.idl` (+1 -0) 📝 `src/cascadia/WindowsTerminal/AppHost.cpp` (+1 -1) </details> ### 📄 Description ## Summary of the Pull Request Adds a per-profile setting for setting the audio sound for the bell. The setting is `bellSound`, it accepts a path. We'll use the file at that path as the sound for the bell. If it doesn't exist, then oh well, so sound for you. It'll also secretly accept an array of paths. If you provide an array, it will pick one at random. ## PR Checklist * [x] Closes #8366 * [x] I work here * [ ] Tests - lol this is the hackathon, I'm just messing around * [ ] Requires documentation to be updated ## Validation Steps Performed I'm not suggesting that anyone go to [this post](https://www.reddit.com/r/untitledgoosegame/comments/d77le4/honk_ringtones/) and download a zip full of `honk.mp3`s. I'm definitely not suggesting you add it to your settings like ```jsonc "bellSound": [ "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk1.mp3", "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk2.mp3", "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk3.mp3", "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk4.mp3", "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk-muffled1.mp3", "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk-muffled2.mp3", "C:\\Users\\migrie\\Downloads\\memes\\honks\\Honk-muffled3.mp3" ] ``` No, don't do that. https://user-images.githubusercontent.com/18356694/137389503-91e43dba-8f7b-4078-9d35-23ceb2ac9432.mp4 * [x] It surprisingly works elevated * [x] We should probably accept env vars in these paths * [x] We may only want one `MediaPlayer` per terminal, rather than one per pane * [ ] We may want to validate the paths, and discard ones that don't exist. * [x] alternatively, _meh_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-31 09:29:43 +00:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#28624