diff options
author | Watcom Hecht <watcom.hecht@gmail.com> | 2015-04-19 11:32:51 -0300 |
---|---|---|
committer | Watcom Hecht <watcom.hecht@gmail.com> | 2015-04-19 13:28:26 -0300 |
commit | f779da1a5936a2e7f6c86cf80d99a076761baa80 (patch) | |
tree | afa302b10aac7522d403abf11f03836f5e910981 /include/i3status.h | |
parent | dedea6266bb3771c51493d690f8835beb9520c24 (diff) |
PulseAudio muted volume support (fixes #27)
Diffstat (limited to 'include/i3status.h')
-rw-r--r-- | include/i3status.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/i3status.h b/include/i3status.h index 8fb1b79..05827a9 100644 --- a/include/i3status.h +++ b/include/i3status.h @@ -21,6 +21,9 @@ enum { O_DZEN2, #define max(a, b) ((a) > (b) ? (a) : (b)) #define DEFAULT_SINK_INDEX UINT32_MAX +#define COMPOSE_VOLUME_MUTE(vol, mute) ((vol) | ((mute) ? (1 << 30) : 0)) +#define DECOMPOSE_VOLUME(cvol) ((cvol) & ~(1 << 30)) +#define DECOMPOSE_MUTED(cvol) (((cvol) & (1 << 30)) != 0) #if defined(LINUX) |