2018-08-09 12:05:48 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <json/json.h>
|
|
|
|
#include "modules/clock.hpp"
|
2018-08-20 17:20:02 +02:00
|
|
|
#ifdef HAVE_SWAY
|
2018-10-30 13:39:30 +01:00
|
|
|
#include "modules/sway/mode.hpp"
|
2018-08-15 20:17:17 +02:00
|
|
|
#include "modules/sway/window.hpp"
|
2019-04-18 17:52:00 +02:00
|
|
|
#include "modules/sway/workspaces.hpp"
|
2020-10-10 18:09:18 +02:00
|
|
|
#include "modules/sway/language.hpp"
|
2018-08-20 17:20:02 +02:00
|
|
|
#endif
|
2020-05-30 12:07:38 +02:00
|
|
|
#ifdef HAVE_WLR
|
|
|
|
#include "modules/wlr/taskbar.hpp"
|
|
|
|
#endif
|
2020-06-06 15:41:37 +02:00
|
|
|
#ifdef HAVE_RIVER
|
|
|
|
#include "modules/river/tags.hpp"
|
|
|
|
#endif
|
2019-08-09 11:52:16 +02:00
|
|
|
#if defined(__linux__) && !defined(NO_FILESYSTEM)
|
2018-08-09 12:05:48 +02:00
|
|
|
#include "modules/battery.hpp"
|
2019-05-12 19:53:14 +02:00
|
|
|
#endif
|
2019-08-11 15:10:37 +02:00
|
|
|
#if defined(HAVE_CPU_LINUX) || defined(HAVE_CPU_BSD)
|
2018-08-09 12:05:48 +02:00
|
|
|
#include "modules/cpu.hpp"
|
2019-08-11 15:10:37 +02:00
|
|
|
#endif
|
2019-04-18 17:52:00 +02:00
|
|
|
#include "modules/idle_inhibitor.hpp"
|
2019-08-09 12:40:33 +02:00
|
|
|
#if defined(HAVE_MEMORY_LINUX) || defined(HAVE_MEMORY_BSD)
|
2019-04-18 17:52:00 +02:00
|
|
|
#include "modules/memory.hpp"
|
2019-08-09 12:40:33 +02:00
|
|
|
#endif
|
2019-09-23 22:25:54 +02:00
|
|
|
#include "modules/disk.hpp"
|
2019-08-11 17:23:37 +02:00
|
|
|
#ifdef HAVE_DBUSMENU
|
2018-08-29 20:36:39 +02:00
|
|
|
#include "modules/sni/tray.hpp"
|
2018-10-25 19:12:28 +02:00
|
|
|
#endif
|
2018-08-20 17:20:02 +02:00
|
|
|
#ifdef HAVE_LIBNL
|
2018-08-09 16:38:24 +02:00
|
|
|
#include "modules/network.hpp"
|
2018-08-20 17:20:02 +02:00
|
|
|
#endif
|
2019-02-19 05:11:18 +01:00
|
|
|
#ifdef HAVE_LIBUDEV
|
|
|
|
#include "modules/backlight.hpp"
|
|
|
|
#endif
|
2018-08-20 17:20:02 +02:00
|
|
|
#ifdef HAVE_LIBPULSE
|
2018-08-09 23:55:38 +02:00
|
|
|
#include "modules/pulseaudio.hpp"
|
2018-08-20 17:20:02 +02:00
|
|
|
#endif
|
2019-04-16 16:34:37 +02:00
|
|
|
#ifdef HAVE_LIBMPDCLIENT
|
|
|
|
#include "modules/mpd.hpp"
|
|
|
|
#endif
|
2020-09-06 19:44:13 +02:00
|
|
|
#ifdef HAVE_LIBSNDIO
|
|
|
|
#include "modules/sndio.hpp"
|
|
|
|
#endif
|
2019-04-18 17:43:16 +02:00
|
|
|
#include "bar.hpp"
|
2019-04-18 17:52:00 +02:00
|
|
|
#include "modules/custom.hpp"
|
|
|
|
#include "modules/temperature.hpp"
|
2019-08-09 11:52:16 +02:00
|
|
|
#if defined(__linux__)
|
2020-08-14 20:59:30 +02:00
|
|
|
# ifdef WANT_RFKILL
|
|
|
|
# include "modules/bluetooth.hpp"
|
|
|
|
# endif
|
2019-08-09 11:52:16 +02:00
|
|
|
#endif
|
2018-08-09 12:05:48 +02:00
|
|
|
|
|
|
|
namespace waybar {
|
|
|
|
|
2018-08-16 14:29:41 +02:00
|
|
|
class Factory {
|
2019-04-18 17:52:00 +02:00
|
|
|
public:
|
|
|
|
Factory(const Bar& bar, const Json::Value& config);
|
2019-06-15 14:57:52 +02:00
|
|
|
AModule* makeModule(const std::string& name) const;
|
2019-04-18 17:52:00 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
const Bar& bar_;
|
|
|
|
const Json::Value& config_;
|
2018-08-16 14:29:41 +02:00
|
|
|
};
|
2018-08-09 12:05:48 +02:00
|
|
|
|
2019-04-18 17:52:00 +02:00
|
|
|
} // namespace waybar
|