mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
swaybar: save id upon startup
This adds an id property to the bar, which will be used to filter barconfig_update events
This commit is contained in:
parent
1f90f92f45
commit
d0b54e932b
5 changed files with 13 additions and 13 deletions
|
|
@ -46,6 +46,8 @@ struct swaybar_hotspot {
|
|||
};
|
||||
|
||||
struct swaybar {
|
||||
char *id;
|
||||
|
||||
struct wl_display *display;
|
||||
struct wl_compositor *compositor;
|
||||
struct zwlr_layer_shell_v1 *layer_shell;
|
||||
|
|
@ -96,7 +98,7 @@ struct swaybar_workspace {
|
|||
bool urgent;
|
||||
};
|
||||
|
||||
bool bar_setup(struct swaybar *bar, const char *socket_path, const char *bar_id);
|
||||
bool bar_setup(struct swaybar *bar, const char *socket_path);
|
||||
void bar_run(struct swaybar *bar);
|
||||
void bar_teardown(struct swaybar *bar);
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
#include <stdbool.h>
|
||||
#include "swaybar/bar.h"
|
||||
|
||||
bool ipc_initialize(struct swaybar *bar, const char *bar_id);
|
||||
bool ipc_initialize(struct swaybar *bar);
|
||||
bool handle_ipc_readable(struct swaybar *bar);
|
||||
void ipc_get_workspaces(struct swaybar *bar);
|
||||
void ipc_send_workspace_command(struct swaybar *bar, const char *ws);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue