mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
27 lines
503 B
C++
27 lines
503 B
C++
#pragma once
|
|
|
|
#include <fmt/format.h>
|
|
#include "ALabel.hpp"
|
|
|
|
#include <fmt/chrono.h>
|
|
#include "util/sleeper_thread.hpp"
|
|
#include "util/rfkill.hpp"
|
|
|
|
namespace waybar::modules {
|
|
|
|
class Bluetooth : public ALabel {
|
|
public:
|
|
Bluetooth(const std::string&, const Json::Value&);
|
|
~Bluetooth() = default;
|
|
auto update() -> void;
|
|
|
|
private:
|
|
std::string status_;
|
|
util::SleeperThread thread_;
|
|
util::SleeperThread intervall_thread_;
|
|
|
|
util::Rfkill rfkill_;
|
|
};
|
|
|
|
} // namespace waybar::modules
|