You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This stackoverflow post implies that notification managers can actually control sounds. Not 100% sure if many applications use this, or if they just play the sounds themselves, but that's the deal. This is from the hints table:
+------------------------------------------------------------------------+
| Name | Value Type | Description |
|------------------+------------+----------------------------------------|
| "urgency" | byte | The urgency level. |
|------------------+------------+----------------------------------------|
| "category" | string | The type of notification this is. |
|------------------+------------+----------------------------------------|
| | | This specifies the name of the |
| | | desktop filename representing the |
| | | calling program. This should be the |
| | | same as the prefix used for the |
| "desktop-entry"> | string | application's .desktop file. An |
| | | example would be "rhythmbox" from |
| | | "rhythmbox.desktop". This can be used |
| | | by the daemon to retrieve the correct |
| | | icon for the application, for logging |
| | | purposes, etc. |
|------------------+------------+----------------------------------------|
| | | This is a raw data image format |
| | | which describes the width, height, |
| "image_data" | (iiibiiay) | rowstride, has alpha, bits per sample, |
| | | channels and image data respectively. |
| | | We use this value if the icon field is |
| | | left blank. |
|------------------+------------+----------------------------------------|
| "sound-file" | string | The path to a sound file to play |
| | | when the notification pops up. |
|------------------+------------+----------------------------------------|
| | | Causes the server to suppress |
| | | playing any sounds, if it has that |
| "suppress-sound" | boolean | ability. This is usually set when the |
| | | client itself is going to play its own |
| | | sound. |
|------------------+------------+----------------------------------------|
| | | Specifies the X location on the |
| "x" | int | screen that the notification should |
| | | point to. The "y" hint must also be |
| | | specified. |
|------------------+------------+----------------------------------------|
| | | Specifies the Y location on the |
| "y" | int | screen that the notification should |
| | | point to. The "x" hint must also be |
| | | specified. |
+------------------------------------------------------------------------+
It'd be cool to try to implement this functionality, specifically sound-file and suppress-sound.
The text was updated successfully, but these errors were encountered:
I will probably get around to adding do not disturb, eventually. Though I am not sure if the approach of spawning an external player is the correct one. Feedback is appreciated.
This stackoverflow post implies that notification managers can actually control sounds. Not 100% sure if many applications use this, or if they just play the sounds themselves, but that's the deal. This is from the hints table:
It'd be cool to try to implement this functionality, specifically
sound-file
andsuppress-sound
.The text was updated successfully, but these errors were encountered: