-
-
Notifications
You must be signed in to change notification settings - Fork 728
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Viktar Lukashonak <[email protected]>
- Loading branch information
1 parent
bbc916d
commit ee777d8
Showing
5 changed files
with
62 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
#pragma once | ||
|
||
#include <fmt/format.h> | ||
|
||
#include <algorithm> | ||
#include <array> | ||
#include <memory> | ||
|
||
#include "ALabel.hpp" | ||
#include "util/audio_backend.hpp" | ||
|
||
namespace waybar::modules { | ||
|
||
class Pulseaudio : public ALabel { | ||
class Pulseaudio final : public ALabel { | ||
public: | ||
Pulseaudio(const std::string&, const Json::Value&); | ||
virtual ~Pulseaudio() = default; | ||
auto update() -> void override; | ||
|
||
private: | ||
bool handleScroll(GdkEventScroll* e) override; | ||
bool handleScroll(double dx, double dy) override; | ||
const std::vector<std::string> getPulseIcon() const; | ||
|
||
std::shared_ptr<util::AudioBackend> backend = nullptr; | ||
std::shared_ptr<util::AudioBackend> backend{nullptr}; | ||
}; | ||
|
||
} // namespace waybar::modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters