mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat(mpd): Add support for play/pause icons
This commit is contained in:
@ -14,8 +14,11 @@ class MPD : public ALabel {
|
||||
private:
|
||||
std::thread worker();
|
||||
void setLabel();
|
||||
std::string getStateIcon();
|
||||
|
||||
void tryConnect();
|
||||
void checkErrors();
|
||||
|
||||
void fetchState();
|
||||
void waitForEvent();
|
||||
|
||||
@ -28,10 +31,11 @@ class MPD : public ALabel {
|
||||
// Not using unique_ptr since we don't manage the pointer
|
||||
// (It's either nullptr, or from the config)
|
||||
const char* server_;
|
||||
unsigned port_;
|
||||
const unsigned port_;
|
||||
|
||||
unique_connection connection_;
|
||||
unique_status status_;
|
||||
mpd_state state_;
|
||||
unique_song song_;
|
||||
|
||||
bool stopped_;
|
||||
|
Reference in New Issue
Block a user