mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
modules/power_profiles_daemon: add custom format from config
We move to a single icon label format to save space on the bar. We still display the profile name and the driver in the tooltip.
This commit is contained in:
@ -32,6 +32,9 @@ class PowerProfilesDaemon : public ALabel {
|
||||
std::vector<Profile>::iterator activeProfile_;
|
||||
// Current CSS class applied to the label
|
||||
std::string currentStyle_;
|
||||
// Format strings
|
||||
std::string labelFormat_;
|
||||
std::string tooltipFormat_;
|
||||
// DBus Proxy used to track the current active profile
|
||||
Glib::RefPtr<Gio::DBus::Proxy> powerProfilesProxy_;
|
||||
sigc::connection powerProfileChangeSignal_;
|
||||
|
Reference in New Issue
Block a user