feat(conf): Option to always show urgent workspaces in i3 (#2378)

When `pin-workspaces` is set to true using `show-urgent` will show
urgent workspaces on the bar even when the workspace is not associated
with the current monitor.
This commit is contained in:
zappolowski
2021-02-15 21:31:34 +01:00
committed by GitHub
parent 50f127f1bc
commit 99900323b7
5 changed files with 8 additions and 4 deletions

View File

@ -33,6 +33,7 @@ namespace modules {
m_wrap = m_conf.get(name(), "wrapping-scroll", m_wrap);
m_indexsort = m_conf.get(name(), "index-sort", m_indexsort);
m_pinworkspaces = m_conf.get(name(), "pin-workspaces", m_pinworkspaces);
m_show_urgent = m_conf.get(name(), "show-urgent", m_show_urgent);
m_strip_wsnumbers = m_conf.get(name(), "strip-wsnumbers", m_strip_wsnumbers);
m_fuzzy_match = m_conf.get(name(), "fuzzy-match", m_fuzzy_match);
@ -132,7 +133,7 @@ namespace modules {
vector<shared_ptr<i3_util::workspace_t>> workspaces;
if (m_pinworkspaces) {
workspaces = i3_util::workspaces(ipc, m_bar.monitor->name);
workspaces = i3_util::workspaces(ipc, m_bar.monitor->name, m_show_urgent);
} else {
workspaces = i3_util::workspaces(ipc);
}