mirror of
https://github.com/polybar/polybar.git
synced 2026-03-30 03:56:22 +00:00
feat(xwindow): Add label-empty
Allows for custom text, when window title is empty
This commit is contained in:
committed by
Patrick Ziegler
parent
8f75e685cc
commit
d31570fe2f
@ -30,6 +30,11 @@ namespace modules {
|
||||
*/
|
||||
class xwindow_module : public static_module<xwindow_module>, public event_handler<evt::property_notify> {
|
||||
public:
|
||||
enum class state {
|
||||
NONE,
|
||||
ACTIVE,
|
||||
EMPTY
|
||||
};
|
||||
explicit xwindow_module(const bar_settings&, string);
|
||||
|
||||
void update(bool force = false);
|
||||
@ -43,6 +48,7 @@ namespace modules {
|
||||
|
||||
connection& m_connection;
|
||||
unique_ptr<active_window> m_active;
|
||||
map<state, label_t> m_statelabels;
|
||||
label_t m_label;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user