Modular status panel for X11 and Wayland, inspired by https://github.com/jaagr/polybar
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1018 B
52 lines
1018 B
#pragma once |
|
|
|
#include "../bar/bar.h" |
|
#include "backend.h" |
|
|
|
struct private { |
|
/* From bar_config */ |
|
char *monitor; |
|
enum bar_location location; |
|
int height; |
|
int left_spacing, right_spacing; |
|
int left_margin, right_margin; |
|
|
|
pixman_color_t background; |
|
|
|
struct { |
|
int width; |
|
pixman_color_t color; |
|
int left_margin, right_margin; |
|
int top_margin, bottom_margin; |
|
} border; |
|
|
|
struct { |
|
struct module **mods; |
|
struct exposable **exps; |
|
size_t count; |
|
} left; |
|
struct { |
|
struct module **mods; |
|
struct exposable **exps; |
|
size_t count; |
|
} center; |
|
struct { |
|
struct module **mods; |
|
struct exposable **exps; |
|
size_t count; |
|
} right; |
|
|
|
/* Calculated run-time */ |
|
int width; |
|
int height_with_border; |
|
|
|
/* Name of currently active cursor */ |
|
char *cursor_name; |
|
|
|
pixman_image_t *pix; |
|
|
|
struct { |
|
void *data; |
|
const struct backend *iface; |
|
} backend; |
|
};
|
|
|