Search for device automatically if none given

This commit is contained in:
Grant Moyer
2021-02-07 21:05:34 -05:00
parent 6fdbc27998
commit 08e886ebc6
3 changed files with 52 additions and 25 deletions

View File

@ -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_;