2016-01-23 23:23:09 +00:00
|
|
|
#ifndef _SWAYBAR_IPC_H
|
|
|
|
#define _SWAYBAR_IPC_H
|
|
|
|
|
2016-01-24 01:34:20 +00:00
|
|
|
#include "bar.h"
|
2016-01-23 23:23:09 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Initialize ipc connection to sway and get sway state, outputs, bar_config.
|
|
|
|
*/
|
2016-02-22 16:27:17 +00:00
|
|
|
void ipc_bar_init(struct bar *bar, const char *bar_id);
|
2016-01-23 23:23:09 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Handle ipc event from sway.
|
|
|
|
*/
|
2016-01-24 01:34:20 +00:00
|
|
|
bool handle_ipc_event(struct bar *bar);
|
2016-01-23 23:23:09 +00:00
|
|
|
|
2016-07-11 05:11:38 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Send workspace command to sway
|
|
|
|
*/
|
|
|
|
void ipc_send_workspace_command(const char *workspace_name);
|
|
|
|
|
2016-01-23 23:23:09 +00:00
|
|
|
#endif /* _SWAYBAR_IPC_H */
|
|
|
|
|