mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
Round up workspaces on each output
This commit is contained in:
parent
e5e8094dc3
commit
3399ad9840
4 changed files with 85 additions and 6 deletions
|
|
@ -30,6 +30,8 @@ struct swaybar_output {
|
|||
struct wl_surface *surface;
|
||||
struct zwlr_layer_surface_v1 *layer_surface;
|
||||
|
||||
struct wl_list workspaces;
|
||||
|
||||
char *name;
|
||||
size_t index;
|
||||
bool focused;
|
||||
|
|
@ -39,9 +41,19 @@ struct swaybar_output {
|
|||
struct pool_buffer *current_buffer;
|
||||
};
|
||||
|
||||
struct swaybar_workspace {
|
||||
struct wl_list link;
|
||||
int num;
|
||||
char *name;
|
||||
bool focused;
|
||||
bool visible;
|
||||
bool urgent;
|
||||
};
|
||||
|
||||
// TODO: Rename stuff to match wlroots conventions (init/create/etc)
|
||||
void bar_setup(struct swaybar *bar,
|
||||
const char *socket_path,
|
||||
const char *bar_id);
|
||||
const char *socket_path,
|
||||
const char *bar_id);
|
||||
void bar_run(struct swaybar *bar);
|
||||
void bar_teardown(struct swaybar *bar);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,8 @@
|
|||
#define _SWAYBAR_IPC_H
|
||||
#include "swaybar/bar.h"
|
||||
|
||||
void ipc_get_config(struct swaybar *bar, const char *bar_id);
|
||||
void ipc_initialize(struct swaybar *bar, const char *bar_id);
|
||||
void handle_ipc_event(struct swaybar *bar);
|
||||
void ipc_get_workspaces(struct swaybar *bar);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue