diff --git a/doc/config.cmake b/doc/config.cmake index a757b22f..f99fab72 100644 --- a/doc/config.cmake +++ b/doc/config.cmake @@ -155,6 +155,10 @@ label-urgent = %index% label-urgent-background = ${module/bspwm.label-urgent-background} label-urgent-padding = ${module/bspwm.label-urgent-padding} +; Separator in between workspaces +; label-separator = | + + [module/mpd] type = internal/mpd format-online = diff --git a/include/modules/i3.hpp b/include/modules/i3.hpp index 103f15a9..ccf45691 100644 --- a/include/modules/i3.hpp +++ b/include/modules/i3.hpp @@ -76,6 +76,11 @@ namespace modules { label_t m_modelabel; bool m_modeactive{false}; + /** + * Separator that is inserted in between workspaces + */ + label_t m_labelseparator; + bool m_click{true}; bool m_scroll{true}; bool m_revscroll{true}; diff --git a/src/modules/i3.cpp b/src/modules/i3.cpp index 07580d41..56c2fb48 100644 --- a/src/modules/i3.cpp +++ b/src/modules/i3.cpp @@ -52,6 +52,8 @@ namespace modules { m_modelabel = load_optional_label(m_conf, name(), "label-mode", "%mode%"); } + m_labelseparator = load_optional_label(m_conf, name(), "label-separator", ""); + m_icons = factory_util::shared(); m_icons->add(DEFAULT_WS_ICON, factory_util::shared