mirror of
https://github.com/polybar/polybar.git
synced 2026-03-01 13:50:06 +00:00
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:
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user