2010-07-21 19:15:18 -04:00
|
|
|
#ifndef OUTPUTS_H_
|
|
|
|
#define OUTPUTS_H_
|
|
|
|
|
|
|
|
#include <xcb/xcb.h>
|
|
|
|
|
2010-07-29 21:11:54 -04:00
|
|
|
#include "common.h"
|
|
|
|
#include "workspaces.h"
|
|
|
|
|
|
|
|
typedef struct i3_output i3_output;
|
2010-07-21 19:15:18 -04:00
|
|
|
|
2010-07-29 21:11:54 -04:00
|
|
|
SLIST_HEAD(outputs_head, i3_output);
|
|
|
|
struct outputs_head *outputs;
|
2010-07-21 19:15:18 -04:00
|
|
|
|
2010-07-22 22:43:43 -04:00
|
|
|
void parse_outputs_json(char* json);
|
2010-07-21 19:15:18 -04:00
|
|
|
void free_outputs();
|
|
|
|
i3_output* get_output_by_name(char* name);
|
|
|
|
|
2010-07-29 21:11:54 -04:00
|
|
|
struct i3_output {
|
2010-07-21 19:15:18 -04:00
|
|
|
char* name;
|
|
|
|
bool active;
|
|
|
|
int ws;
|
|
|
|
rect rect;
|
|
|
|
|
2010-07-26 11:21:46 -04:00
|
|
|
xcb_window_t bar;
|
|
|
|
xcb_gcontext_t bargc;
|
2010-07-21 19:15:18 -04:00
|
|
|
|
2010-07-29 21:11:54 -04:00
|
|
|
struct ws_head *workspaces;
|
|
|
|
|
|
|
|
SLIST_ENTRY(i3_output) slist;
|
2010-07-21 19:15:18 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|