mirror of
https://github.com/swaywm/sway.git
synced 2026-04-28 06:46:26 -04:00
almost working
This commit is contained in:
parent
095353d91d
commit
05366ddf53
5 changed files with 26 additions and 1 deletions
|
|
@ -7,6 +7,17 @@
|
|||
#include "bar/config.h"
|
||||
#include "bar/ipc.h"
|
||||
|
||||
void ipc_send_arrange_command() {
|
||||
sway_log(L_DEBUG, "sending arrange command");
|
||||
sway_log(L_DEBUG, "socketfd is -> %d", swaybar.ipc_socketfd);
|
||||
sway_log(L_DEBUG, "command is -> %d", IPC_ARRANGE_LAYOUT);
|
||||
|
||||
char *cmd = strdup("");
|
||||
uint32_t len = strlen(cmd);
|
||||
char *r = ipc_single_command(swaybar.ipc_socketfd, IPC_ARRANGE_LAYOUT, cmd, &len);
|
||||
sway_log(L_DEBUG, "arrange command response is -> %s", r);
|
||||
}
|
||||
|
||||
void ipc_send_workspace_command(const char *workspace_name) {
|
||||
uint32_t size = strlen("workspace ") + strlen(workspace_name) + 1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue