mirror of
https://github.com/swaywm/sway.git
synced 2025-10-28 05:40:16 -04:00
Start port of swaybar to layer shell
This starts up the event loop and wayland display and shims out the basic top level rendering concepts. Also includes some changes to incorporate pango into the 1.x codebase properly.
This commit is contained in:
parent
382e8af418
commit
cab1352801
23 changed files with 345 additions and 3787 deletions
|
|
@ -1,9 +1,7 @@
|
|||
#ifndef _SWAYBAR_CONFIG_H
|
||||
#define _SWAYBAR_CONFIG_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include "list.h"
|
||||
#include "util.h"
|
||||
|
||||
|
|
@ -19,10 +17,10 @@ struct box_colors {
|
|||
/**
|
||||
* Swaybar config.
|
||||
*/
|
||||
struct config {
|
||||
struct swaybar_config {
|
||||
char *status_command;
|
||||
bool pango_markup;
|
||||
uint32_t position;
|
||||
uint32_t position; // zwlr_layer_surface_v1_anchor
|
||||
char *font;
|
||||
char *sep_symbol;
|
||||
char *mode;
|
||||
|
|
@ -32,18 +30,6 @@ struct config {
|
|||
bool workspace_buttons;
|
||||
bool all_outputs;
|
||||
list_t *outputs;
|
||||
|
||||
#ifdef ENABLE_TRAY
|
||||
// Tray
|
||||
char *tray_output;
|
||||
char *icon_theme;
|
||||
|
||||
uint32_t tray_padding;
|
||||
uint32_t activate_button;
|
||||
uint32_t context_button;
|
||||
uint32_t secondary_button;
|
||||
#endif
|
||||
|
||||
int height;
|
||||
|
||||
struct {
|
||||
|
|
@ -63,24 +49,7 @@ struct config {
|
|||
} colors;
|
||||
};
|
||||
|
||||
/**
|
||||
* Parse position top|bottom|left|right.
|
||||
*/
|
||||
uint32_t parse_position(const char *position);
|
||||
struct swaybar_config *init_config();
|
||||
void free_config(struct swaybar_config *config);
|
||||
|
||||
/**
|
||||
* Parse font.
|
||||
*/
|
||||
char *parse_font(const char *font);
|
||||
|
||||
/**
|
||||
* Initialize default sway config.
|
||||
*/
|
||||
struct config *init_config();
|
||||
|
||||
/**
|
||||
* Free config struct.
|
||||
*/
|
||||
void free_config(struct config *config);
|
||||
|
||||
#endif /* _SWAYBAR_CONFIG_H */
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue