feat(xwindow): New module "xwindow"

Add module to display title of active window.
Requires WM with support for the _NET_ACTIVE_WINDOW hint.

Ref #84
This commit is contained in:
Michael Carlberg
2016-11-19 04:03:18 +01:00
parent b921225487
commit 51d8f289fa
21 changed files with 445 additions and 16 deletions

View File

@ -18,6 +18,7 @@
#include "modules/text.hpp"
#include "modules/unsupported.hpp"
#include "modules/xbacklight.hpp"
#include "modules/xwindow.hpp"
#include "components/bar.hpp"
#include "components/config.hpp"
@ -358,8 +359,6 @@ void controller::bootstrap_modules() {
module.reset(new counter_module(bar, m_log, m_conf, module_name));
else if (type == "internal/backlight")
module.reset(new backlight_module(bar, m_log, m_conf, module_name));
else if (type == "internal/xbacklight")
module.reset(new xbacklight_module(bar, m_log, m_conf, module_name));
else if (type == "internal/battery")
module.reset(new battery_module(bar, m_log, m_conf, module_name));
else if (type == "internal/bspwm")
@ -382,6 +381,10 @@ void controller::bootstrap_modules() {
module.reset(new network_module(bar, m_log, m_conf, module_name));
else if (type == "internal/temperature")
module.reset(new temperature_module(bar, m_log, m_conf, module_name));
else if (type == "internal/xbacklight")
module.reset(new xbacklight_module(bar, m_log, m_conf, module_name));
else if (type == "internal/xwindow")
module.reset(new xwindow_module(bar, m_log, m_conf, module_name));
else if (type == "custom/text")
module.reset(new text_module(bar, m_log, m_conf, module_name));
else if (type == "custom/script")