style: config
This commit is contained in:
parent
41992ddf86
commit
69722bae48
2 changed files with 5 additions and 4 deletions
|
@ -10,11 +10,12 @@ constexpr int paddingX = 10;
|
||||||
constexpr int paddingY = 3;
|
constexpr int paddingY = 3;
|
||||||
|
|
||||||
// See https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html
|
// See https://docs.gtk.org/Pango/type_func.FontDescription.from_string.html
|
||||||
constexpr const char *font = "Sans 12";
|
constexpr const char* font = "Sans 12";
|
||||||
|
|
||||||
constexpr ColorScheme colorInactive = {Color(0xbb, 0xbb, 0xbb), Color(0x22, 0x22, 0x22)};
|
constexpr ColorScheme colorInactive = {Color(0xbb, 0xbb, 0xbb), Color(0x22, 0x22, 0x22)};
|
||||||
constexpr ColorScheme colorActive = {Color(0xee, 0xee, 0xee), Color(0x00, 0x55, 0x77)};
|
constexpr ColorScheme colorActive = {Color(0xee, 0xee, 0xee), Color(0x00, 0x55, 0x77)};
|
||||||
constexpr const char *termcmd[] = {"foot", nullptr};
|
constexpr const char* termcmd[] = {"foot", nullptr};
|
||||||
|
|
||||||
static std::vector<std::string> tagNames = {
|
static std::vector<std::string> tagNames = {
|
||||||
"1", "2", "3",
|
"1", "2", "3",
|
||||||
"4", "5", "6",
|
"4", "5", "6",
|
||||||
|
|
|
@ -188,6 +188,8 @@ static const struct wl_seat_listener seatListener = {
|
||||||
void setupMonitor(Monitor& monitor) {
|
void setupMonitor(Monitor& monitor) {
|
||||||
monitor.bar.emplace(&monitor);
|
monitor.bar.emplace(&monitor);
|
||||||
monitor.bar->setStatus(lastStatus);
|
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)
|
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)) {
|
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& 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) {
|
if (ready) {
|
||||||
setupMonitor(m);
|
setupMonitor(m);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue