From 818bcbd0b53d56443571e405c61570e29e59f88d Mon Sep 17 00:00:00 2001 From: NBonaparte Date: Sat, 20 Jan 2018 12:48:02 -0800 Subject: [PATCH] volume: use internal/alsa instead of internal/volume --- README.md | 2 +- include/modules/meta/factory.hpp | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 180bc48b..ef9770f2 100644 --- a/README.md +++ b/README.md @@ -91,7 +91,7 @@ A compiler with C++14 support ([clang-3.4+](http://llvm.org/releases/download.ht - xcb-util-cursor *required for the `cursor-click` and `cursor-scroll` settings* **Optional dependencies for extended module support:** -- alsa-lib *required by `internal/volume`* +- alsa-lib *required by `internal/alsa`* - libpulse *required by `internal/pulseaudio`* - jsoncpp *required by `internal/i3`* - libmpdclient *required by `internal/mpd`* diff --git a/include/modules/meta/factory.hpp b/include/modules/meta/factory.hpp index bd94482e..f8a447e9 100644 --- a/include/modules/meta/factory.hpp +++ b/include/modules/meta/factory.hpp @@ -76,6 +76,8 @@ namespace { } else if (name == "internal/mpd") { return new mpd_module(bar, move(module_name)); } else if (name == "internal/volume") { + throw application_error("internal/volume is deprecated, use internal/alsa instead"); + } else if (name == "internal/alsa") { return new volume_module(bar, move(module_name)); } else if (name == "internal/pulseaudio") { return new pulseaudio_module(bar, move(module_name));