From dd7d78cd605ae067f66d742a119c4f1507bd4638 Mon Sep 17 00:00:00 2001 From: Marc <39213657+marcplustwo@users.noreply.github.com> Date: Sun, 23 Feb 2020 23:09:05 +0100 Subject: [PATCH] changes requested --- include/util/rfkill.hpp | 3 +-- man/waybar-bluetooth.5.scd | 2 +- src/modules/network.cpp | 1 - src/util/rfkill.cpp | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/util/rfkill.hpp b/include/util/rfkill.hpp index 67a9807c..5dbf3ced 100644 --- a/include/util/rfkill.hpp +++ b/include/util/rfkill.hpp @@ -9,12 +9,11 @@ class Rfkill { Rfkill(enum rfkill_type rfkill_type); ~Rfkill() = default; void waitForEvent(); - int getState() const; + bool getState() const; private: enum rfkill_type rfkill_type_; int state_ = 0; - int prev_state_ = 0; }; } // namespace waybar::util diff --git a/man/waybar-bluetooth.5.scd b/man/waybar-bluetooth.5.scd index 7f6876ba..a07e544b 100644 --- a/man/waybar-bluetooth.5.scd +++ b/man/waybar-bluetooth.5.scd @@ -15,7 +15,7 @@ Addressed by *bluetooth* *interval*: ++ typeof: integer ++ default: 60 ++ - The interval in which the network information gets polled (e.g. signal strength). + The interval in which the bluetooth state gets updated. *format*: ++ typeof: string ++ diff --git a/src/modules/network.cpp b/src/modules/network.cpp index b993f2cc..0cf16c0f 100644 --- a/src/modules/network.cpp +++ b/src/modules/network.cpp @@ -3,7 +3,6 @@ #include #include #include -#include #include "util/format.hpp" #include "util/rfkill.hpp" diff --git a/src/util/rfkill.cpp b/src/util/rfkill.cpp index 2d5ad7fd..df77598b 100644 --- a/src/util/rfkill.cpp +++ b/src/util/rfkill.cpp @@ -78,6 +78,6 @@ void waybar::util::Rfkill::waitForEvent() { } -int waybar::util::Rfkill::getState() const { +bool waybar::util::Rfkill::getState() const { return state_; }