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.
24 lines
422 B
24 lines
422 B
9 years ago
|
#ifndef _SWAYBAR_IPC_H
|
||
|
#define _SWAYBAR_IPC_H
|
||
|
|
||
9 years ago
|
#include "bar.h"
|
||
9 years ago
|
|
||
|
/**
|
||
|
* Initialize ipc connection to sway and get sway state, outputs, bar_config.
|
||
|
*/
|
||
9 years ago
|
void ipc_bar_init(struct bar *bar, const char *bar_id);
|
||
9 years ago
|
|
||
|
/**
|
||
|
* Handle ipc event from sway.
|
||
|
*/
|
||
9 years ago
|
bool handle_ipc_event(struct bar *bar);
|
||
9 years ago
|
|
||
9 years ago
|
|
||
|
/**
|
||
|
* Send workspace command to sway
|
||
|
*/
|
||
|
void ipc_send_workspace_command(const char *workspace_name);
|
||
|
|
||
9 years ago
|
#endif /* _SWAYBAR_IPC_H */
|
||
|
|