diff --git a/Cargo.lock b/Cargo.lock index 43c3fe9f91..606f9cb69b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -370,7 +370,7 @@ dependencies = [ [[package]] name = "i3status-rs" -version = "0.21.11" +version = "0.22.0" dependencies = [ "assert_fs", "chrono", diff --git a/Cargo.toml b/Cargo.toml index b18c7a115d..ebb7a8a010 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -4,7 +4,7 @@ description = "A feature-rich and resource-friendly replacement for i3status, wr repository = "https://github.com/greshake/i3status-rust/" readme = "README.md" license = "GPL-3.0-only" -version = "0.21.11" +version = "0.22.0" authors = [ "Kai Greshake ", "Contributors on GitHub (https://github.com/greshake/i3status-rust/graphs/contributors)", diff --git a/NEWS.md b/NEWS.md index f51c8d5e85..730a68e479 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,4 +1,4 @@ -# i3status-rust 0.22.0 [not released] +# i3status-rust 0.22.0 ### Breaking changes diff --git a/doc/blocks.md b/doc/blocks.md index cfd939baf0..c9d4c7c41d 100644 --- a/doc/blocks.md +++ b/doc/blocks.md @@ -1733,6 +1733,17 @@ format = "{output_name} {volume}" "alsa_output.pci-0000_00_1b.0.analog-stereo" = "🎧" ``` +Since the default value for the `device_kind` key is `sink`, +to display ***microphone*** block you have to use the `source` value: + +```toml +[[block]] +block = "sound" +driver = "pulseaudio" +device_kind = "source" +``` + + #### Options Key | Values | Required | Default @@ -1741,7 +1752,7 @@ Key | Values | Required | Default `format` | A string to customise the output of this block. See below for available placeholders. Text may need to be escaped, refer to [Escaping Text](#escaping-text). | No | `{volume}` `name` | PulseAudio device name, or the ALSA control name as found in the output of `amixer -D yourdevice scontrols`. | No | PulseAudio: `@DEFAULT_SINK@` / ALSA: `Master` `device` | ALSA device name, usually in the form "hw:X" or "hw:X,Y" where `X` is the card number and `Y` is the device number as found in the output of `aplay -l`. | No | `default` -`device_kind` | PulseAudio device kind: `source` or `sink`. | No | `sink` +`device_kind` | PulseAudio device kind: `source` (input) or `sink` (output). | No | `sink` `natural_mapping` | When using the ALSA driver, display the "mapped volume" as given by `alsamixer`/`amixer -M`, which represents the volume level more naturally with respect for the human ear. | No | `false` `step_width` | The percent volume level is increased/decreased for the selected audio device when scrolling. Capped automatically at 50. | No | `5` `max_vol` | Max volume in percent that can be set via scrolling. Note it can still be set above this value if changed by another application. | No | `None`