2012-11-10 07:41:39 -05:00
|
|
|
/*
|
|
|
|
* vim:ts=4:sw=4:expandtab
|
|
|
|
*
|
|
|
|
* i3bar - an xcb-based status- and ws-bar for i3
|
|
|
|
* © 2010-2012 Axel Wagner and contributors (see also: LICENSE)
|
|
|
|
*
|
|
|
|
* mode.c: Handle mode-event and show current binding mode in the bar
|
|
|
|
*
|
|
|
|
*/
|
2013-12-28 21:11:50 -05:00
|
|
|
#pragma once
|
2012-11-10 07:41:39 -05:00
|
|
|
|
|
|
|
#include <xcb/xproto.h>
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
/* Name of current binding mode and its render width */
|
|
|
|
struct mode {
|
|
|
|
i3String *name;
|
|
|
|
int width;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct mode mode;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Start parsing the received json-string
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
void parse_mode_json(char *json);
|