2020-01-21 17:04:54 +01:00
|
|
|
#pragma once
|
|
|
|
|
2021-02-03 04:17:06 +01:00
|
|
|
#include "ALabel.hpp"
|
2020-01-23 17:17:29 +01:00
|
|
|
#include "util/rfkill.hpp"
|
2021-02-03 04:17:06 +01:00
|
|
|
#include "util/sleeper_thread.hpp"
|
2020-01-22 11:37:47 +01:00
|
|
|
|
2020-01-21 17:04:54 +01:00
|
|
|
namespace waybar::modules {
|
|
|
|
|
|
|
|
class Bluetooth : public ALabel {
|
|
|
|
public:
|
|
|
|
Bluetooth(const std::string&, const Json::Value&);
|
|
|
|
~Bluetooth() = default;
|
|
|
|
auto update() -> void;
|
|
|
|
|
|
|
|
private:
|
2021-02-03 04:17:06 +01:00
|
|
|
util::SleeperThread thread_;
|
|
|
|
util::Rfkill rfkill_;
|
2020-01-21 17:04:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace waybar::modules
|