style: config

This commit is contained in:
Raphael Robatsch 2021-10-30 11:55:35 +02:00
parent 41992ddf86
commit 69722bae48
2 changed files with 5 additions and 4 deletions

View File

@ -15,6 +15,7 @@ constexpr const char *font = "Sans 12";
constexpr ColorScheme colorInactive = {Color(0xbb, 0xbb, 0xbb), Color(0x22, 0x22, 0x22)};
constexpr ColorScheme colorActive = {Color(0xee, 0xee, 0xee), Color(0x00, 0x55, 0x77)};
constexpr const char* termcmd[] = {"foot", nullptr};
static std::vector<std::string> tagNames = {
"1", "2", "3",
"4", "5", "6",

View File

@ -188,6 +188,8 @@ static const struct wl_seat_listener seatListener = {
void setupMonitor(Monitor& monitor) {
monitor.bar.emplace(&monitor);
monitor.bar->setStatus(lastStatus);
auto xdgOutput = zxdg_output_manager_v1_get_xdg_output(xdgOutputManager, monitor.wlOutput.get());
zxdg_output_v1_add_listener(xdgOutput, &xdgOutputListener, &monitor);
}
void updatemon(Monitor& mon)
@ -389,8 +391,6 @@ void onGlobalAdd(void*, wl_registry* registry, uint32_t name, const char* interf
}
if (wl_output *output; reg.handle(output, wl_output_interface, 1)) {
auto& m = monitors.emplace_back(Monitor {name, {}, wl_unique_ptr<wl_output> {output}});
auto xdgOutput = zxdg_output_manager_v1_get_xdg_output(xdgOutputManager, m.wlOutput.get());
zxdg_output_v1_add_listener(xdgOutput, &xdgOutputListener, &m);
if (ready) {
setupMonitor(m);
}