2012-11-10 13:41:39 +01:00
|
|
|
/*
|
|
|
|
* vim:ts=4:sw=4:expandtab
|
|
|
|
*
|
|
|
|
* i3bar - an xcb-based status- and ws-bar for i3
|
2015-04-04 02:17:56 +02:00
|
|
|
* © 2010 Axel Wagner and contributors (see also: LICENSE)
|
2012-11-10 13:41:39 +01:00
|
|
|
*
|
2015-03-23 20:56:49 +01:00
|
|
|
* mode.c: Handle "mode" event and show current binding mode in the bar
|
2012-11-10 13:41:39 +01:00
|
|
|
*
|
|
|
|
*/
|
2013-12-29 03:11:50 +01:00
|
|
|
#pragma once
|
2012-11-10 13:41:39 +01:00
|
|
|
|
2016-10-11 09:13:35 +02:00
|
|
|
#include <config.h>
|
|
|
|
|
2012-11-10 13:41:39 +01:00
|
|
|
#include <xcb/xproto.h>
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
/* Name of current binding mode and its render width */
|
|
|
|
struct mode {
|
|
|
|
i3String *name;
|
2019-06-24 20:07:36 +02:00
|
|
|
int name_width;
|
2012-11-10 13:41:39 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct mode mode;
|
|
|
|
|
|
|
|
/*
|
2015-03-23 20:56:49 +01:00
|
|
|
* Start parsing the received JSON string
|
2012-11-10 13:41:39 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
void parse_mode_json(char *json);
|