mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#define HAVE_HYPR
|
||||
|
||||
#include <json/json.h>
|
||||
#ifdef HAVE_LIBDATE
|
||||
#include "modules/clock.hpp"
|
||||
@ -25,6 +27,9 @@
|
||||
#include "modules/hyprland/backend.hpp"
|
||||
#include "modules/hyprland/window.hpp"
|
||||
#endif
|
||||
#ifdef HAVE_HYPR
|
||||
#include "modules/hypr/window.hpp"
|
||||
#endif
|
||||
#if defined(__linux__) && !defined(NO_FILESYSTEM)
|
||||
#include "modules/battery.hpp"
|
||||
#endif
|
||||
|
22
include/modules/hypr/ipc.hpp
Normal file
22
include/modules/hypr/ipc.hpp
Normal file
@ -0,0 +1,22 @@
|
||||
#pragma once
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <sigc++/sigc++.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/un.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <cstring>
|
||||
#include <fstream>
|
||||
#include <memory>
|
||||
#include <mutex>
|
||||
#include <spdlog/spdlog.h>
|
||||
|
||||
#include "bar.hpp"
|
||||
#include "client.hpp"
|
||||
|
||||
namespace waybar::modules::hypr {
|
||||
|
||||
std::string makeRequest(std::string);
|
||||
|
||||
} // namespace waybar::modules::hypr
|
23
include/modules/hypr/window.hpp
Normal file
23
include/modules/hypr/window.hpp
Normal file
@ -0,0 +1,23 @@
|
||||
#pragma once
|
||||
|
||||
#include <fmt/format.h>
|
||||
#include <fstream>
|
||||
#include <sys/statvfs.h>
|
||||
#include "ALabel.hpp"
|
||||
#include "util/sleeper_thread.hpp"
|
||||
#include "util/format.hpp"
|
||||
#include "ipc.hpp"
|
||||
|
||||
namespace waybar::modules::hypr {
|
||||
|
||||
class Window : public ALabel {
|
||||
public:
|
||||
Window(const std::string&, const Json::Value&);
|
||||
~Window() = default;
|
||||
auto update() -> void;
|
||||
|
||||
private:
|
||||
util::SleeperThread thread_;
|
||||
};
|
||||
|
||||
} // namespace waybar::modules::hypr
|
Reference in New Issue
Block a user