mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-24 22:52:32 +02:00 
			
		
		
		
	Search for device automatically if none given
This commit is contained in:
		| @@ -24,6 +24,8 @@ class KeyboardState : public AModule { | ||||
|   auto update() -> void; | ||||
|  | ||||
|  private: | ||||
|   static auto openDevice(const std::string&) -> std::pair<int, libevdev*>; | ||||
|  | ||||
|   const Bar&  bar_; | ||||
|   Gtk::Box    box_; | ||||
|   Gtk::Label  numlock_label_; | ||||
| @@ -37,7 +39,6 @@ class KeyboardState : public AModule { | ||||
|   std::string icon_locked_; | ||||
|   std::string icon_unlocked_; | ||||
|  | ||||
|   std::string dev_path_; | ||||
|   int         fd_; | ||||
|   libevdev*   dev_; | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Grant Moyer
					Grant Moyer