mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
26 lines
446 B
C++
26 lines
446 B
C++
#pragma once
|
|
|
|
#include <fmt/format.h>
|
|
#include <sys/statvfs.h>
|
|
|
|
#include <fstream>
|
|
|
|
#include "ALabel.hpp"
|
|
#include "util/format.hpp"
|
|
#include "util/sleeper_thread.hpp"
|
|
|
|
namespace waybar::modules {
|
|
|
|
class Disk : public ALabel {
|
|
public:
|
|
Disk(const std::string&, const Json::Value&);
|
|
virtual ~Disk() = default;
|
|
auto update() -> void override;
|
|
|
|
private:
|
|
util::SleeperThread thread_;
|
|
std::string path_;
|
|
};
|
|
|
|
} // namespace waybar::modules
|