Add binding mode indicator

This commit is contained in:
Drew DeVault 2018-03-29 10:59:33 -04:00
parent 86ba0fc15d
commit 37b61eff2d
2 changed files with 55 additions and 23 deletions

View file

@ -306,6 +306,7 @@ bool handle_ipc_event(struct swaybar *bar) {
ipc_get_workspaces(bar);
break;
case IPC_EVENT_MODE: {
// TODO: interpret "pango_markup" field
json_object *result = json_tokener_parse(resp->payload);
if (!result) {
free_ipc_response(resp);