feat(backlight): use dbus to set the brightness

This commit is contained in:
Kuruyia
2023-02-03 12:58:52 +01:00
parent a78f0124d2
commit e8c4b85328
2 changed files with 15 additions and 9 deletions

View File

@ -6,6 +6,7 @@
#include <vector>
#include "ALabel.hpp"
#include "giomm/dbusproxy.h"
#include "util/json.hpp"
#include "util/sleeper_thread.hpp"
@ -62,5 +63,7 @@ class Backlight : public ALabel {
std::vector<BacklightDev> devices_;
// thread must destruct before shared data
util::SleeperThread udev_thread_;
Glib::RefPtr<Gio::DBus::Proxy> login_proxy_;
};
} // namespace waybar::modules