diff options
author | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-04-03 14:45:40 -0700 |
---|---|---|
committer | Michael Stapelberg <stapelberg@users.noreply.github.com> | 2015-04-03 14:45:40 -0700 |
commit | 9abe0a9d593548c021c1ab8c3548578bdd58ee32 (patch) | |
tree | 4e38a3eb94ad40e0b34838f3664645007535b9f4 /man | |
parent | d00a0e087c79475e199ff33a33a3e73fcd2c0a22 (diff) | |
parent | 1710c206cf82330815b6db82316eb422f8be5370 (diff) |
Merge pull request #7 from Watcom/master
PulseAudio support for volume input
Diffstat (limited to 'man')
-rw-r--r-- | man/i3status.man | 35 |
1 files changed, 28 insertions, 7 deletions
diff --git a/man/i3status.man b/man/i3status.man index 5754196..a3a8c60 100644 --- a/man/i3status.man +++ b/man/i3status.man @@ -426,13 +426,26 @@ details on the format string. === Volume -Outputs the volume of the specified mixer on the specified device. Works only -on Linux because it uses ALSA. -A simplified configuration can be used on FreeBSD and OpenBSD due to -the lack of ALSA, the +device+ and +mixer+ options can be -ignored on these systems. On these systems the OSS API is used instead to -query +/dev/mixer+ directly if +mixer_dix+ is -1, otherwise -+/dev/mixer++mixer_idx+. +Outputs the volume of the specified mixer on the specified device. PulseAudio +and ALSA (Linux only) are supported. If PulseAudio is absent, a simplified +configuration can be used on FreeBSD and OpenBSD due to the lack of ALSA, the ++device+ and +mixer+ options can be ignored on these systems. On these systems +the OSS API is used instead to query +/dev/mixer+ directly if +mixer_idx+ is +-1, otherwise +/dev/mixer++mixer_idx+. + +To get PulseAudio volume information, one must use the following format in the +device line: + + device = "pulse" + +or + + device = "pulse:N" + +where N is the index of the PulseAudio sink. If no sink is specified the +default is used. If the device string is missing or is set to "default", +PulseAudio will be tried if detected and will fallback to ALSA (Linux) +or OSS (FreeBSD/OpenBSD). *Example order*: +volume master+ @@ -450,6 +463,14 @@ volume master { mixer_idx = 0 } ------------------------------------------------------------- +*Example configuration (PulseAudio)*: +------------------------------------------------------------- +volume master { + format = "♪: %volume" + format_muted = "♪: muted (%volume)" + device = "pulse:1" +} +------------------------------------------------------------- == Universal module options |