summaryrefslogtreecommitdiff
path: root/include/i3status.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/i3status.h')
-rw-r--r--include/i3status.h3
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)