feat(bspwm): Support marked flag for focused nodes
This adds a new label in the bspwm module `label-marked`
This flag for focused nodes of a focused desktop was introduced in [1]
and released with bspwm 0.9.4
It adds the `M` flag to `G` type items in bspwm's report format
Resolves #1552
[1]: d0138af475
This commit is contained in:
parent
21188bca24
commit
fe0b072dd0
@ -27,7 +27,8 @@ namespace modules {
|
||||
STATE_PSEUDOTILED,
|
||||
NODE_LOCKED,
|
||||
NODE_STICKY,
|
||||
NODE_PRIVATE
|
||||
NODE_PRIVATE,
|
||||
NODE_MARKED
|
||||
};
|
||||
|
||||
struct bspwm_monitor {
|
||||
|
@ -122,6 +122,7 @@ namespace modules {
|
||||
m_modelabels.emplace(mode::NODE_LOCKED, load_optional_label(m_conf, name(), "label-locked"));
|
||||
m_modelabels.emplace(mode::NODE_STICKY, load_optional_label(m_conf, name(), "label-sticky"));
|
||||
m_modelabels.emplace(mode::NODE_PRIVATE, load_optional_label(m_conf, name(), "label-private"));
|
||||
m_modelabels.emplace(mode::NODE_MARKED, load_optional_label(m_conf, name(), "label-marked"));
|
||||
}
|
||||
|
||||
m_labelseparator = load_optional_label(m_conf, name(), "label-separator", "");
|
||||
@ -319,6 +320,9 @@ namespace modules {
|
||||
case 'P':
|
||||
mode_flag = mode::NODE_PRIVATE;
|
||||
break;
|
||||
case 'M':
|
||||
mode_flag = mode::NODE_MARKED;
|
||||
break;
|
||||
default:
|
||||
m_log.warn("%s: Undefined G => '%s'", name(), value.substr(i, 1));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user