module/i3: new module; tracks i3 workspaces

This commit is contained in:
Daniel Eklöf 2018-12-13 19:02:01 +01:00
parent 92c9593ff5
commit 92a1a35c90
6 changed files with 630 additions and 3 deletions

14
modules/i3/i3.h Normal file
View file

@ -0,0 +1,14 @@
#pragma once
#include "../../module.h"
#include "../../particle.h"
/* Maps workspace name to a content particle. */
struct i3_workspaces {
const char *name;
struct particle *content;
};
struct module *module_i3(
struct i3_workspaces workspaces[], size_t workspace_count,
int left_spacing, int right_spacing);