mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 16:02:43 +01:00 
			
		
		
		
	feat(backlight): use dbus to set the brightness
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Kuruyia
					Kuruyia