We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44b7cfc commit 71e1ed3Copy full SHA for 71e1ed3
src/blocks/sound.rs
@@ -952,8 +952,9 @@ impl Block for Sound {
952
);
953
let texts = self.format.render(&values)?;
954
955
- // Reference: PulseAudio type definitions
956
- // https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/blob/0ce3008605e5f644fac4bb5edbb1443110201ec1/src/pulse/def.h#L1073-1100
+ // TODO: Query port names instead? See https://github.com/greshake/i3status-rust/pull/1363#issue-1069904082
+ // Reference: PulseAudio port name definitions are the first item in the well_known_descriptions struct:
957
+ // https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/blob/0ce3008605e5f644fac4bb5edbb1443110201ec1/src/modules/alsa/alsa-mixer.c#L2709-L2731
958
let headphones = self
959
.device
960
.active_port()
0 commit comments