diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-07-14 18:57:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-14 18:57:37 -0400 |
commit | 6abbe04e7590f3bfba13351eb87ada70ac3d506e (patch) | |
tree | f7c64d6e9d082bd080960c42e21e54edf01839de /swaybar/ipc.c | |
parent | 1e95191900d1f16b4d195f2d05f1eb7cb1f62ad5 (diff) | |
parent | 8a232c8cfd60c1469ceaaa911f31a6d75e8ad851 (diff) |
Merge pull request #743 from deklov/panel-as-shell-03
Set panels/backgrounds' geometries correctly and don't render them ex…
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r-- | swaybar/ipc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c index dacee4c2..15f40508 100644 --- a/swaybar/ipc.c +++ b/swaybar/ipc.c @@ -7,6 +7,15 @@ #include "bar/config.h" #include "bar/ipc.h" +void ipc_send_workspace_command(const char *workspace_name) { + uint32_t size = strlen("workspace ") + strlen(workspace_name) + 1; + + char command[size]; + sprintf(command, "workspace %s", workspace_name); + + ipc_single_command(swaybar.ipc_socketfd, IPC_COMMAND, command, &size); +} + static void ipc_parse_config(struct config *config, const char *payload) { json_object *bar_config = json_tokener_parse(payload); json_object *tray_output, *mode, *hidden_bar, *position, *status_command; |