Merge pull request #2 from NotAShelf/master

init man documentation
This commit is contained in:
Vaxry
2022-08-18 14:53:15 +02:00
committed by GitHub
8 changed files with 205 additions and 0 deletions

View File

@ -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

View 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

View 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