waybar/include/modules/bluetooth.hpp
Aleksei Bavshin 52dd3d2446
refactor(bluetooth): remove interval and timer thread
The timer thread was always reading the same value from Rfkill state.
2021-02-09 21:27:21 -08:00

19 lines
311 B
C++

#pragma once
#include "ALabel.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:
util::Rfkill rfkill_;
};
} // namespace waybar::modules