mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
feat: memory module
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
#include "modules/clock.hpp"
|
||||
#include "modules/workspaces.hpp"
|
||||
#include "modules/battery.hpp"
|
||||
#include "modules/memory.hpp"
|
||||
|
||||
static void handle_geometry(void *data, struct wl_output *wl_output, int32_t x,
|
||||
int32_t y, int32_t physical_width, int32_t physical_height, int32_t subpixel,
|
||||
@ -147,9 +148,11 @@ auto waybar::Bar::setup_widgets() -> void
|
||||
auto &clock = *new waybar::modules::Clock();
|
||||
auto &workspace_selector = *new waybar::modules::WorkspaceSelector(*this);
|
||||
auto &battery = *new waybar::modules::Battery();
|
||||
auto &memory = *new waybar::modules::Memory();
|
||||
|
||||
left.pack_start(workspace_selector, false, true, 0);
|
||||
// center.pack_start(workspace_selector, true, false, 10);
|
||||
right.pack_end(clock, false, false, 0);
|
||||
right.pack_end(battery, false, false, 0);
|
||||
right.pack_end(memory, false, false, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user