Daniel Eklöf
6a0385e294
module/battery: monitors battery state and capacity
2018-12-16 15:58:17 +01:00
Daniel Eklöf
be6429c852
particle/map: left/right margin on a map doesn't make any sense
2018-12-15 19:16:55 +01:00
Daniel Eklöf
f91d091386
config: simplify assignment of default particle when instantiating a map
2018-12-15 19:16:09 +01:00
Daniel Eklöf
e92e99c5d3
config: add 'default' config to map particle
...
This value specifies the particle to use when the tag value does not
match any of the values specified in the "values" dict.
2018-12-15 19:13:45 +01:00
Daniel Eklöf
40e6af2e2e
yml: use tllists to represent dictionaries and lists
2018-12-15 12:52:12 +01:00
Daniel Eklöf
bda77a83f7
tllist: cast away const in tll_{r,}foreach()
...
This allows us to iterate const lists.
2018-12-15 11:46:34 +01:00
Daniel Eklöf
ee156c8dc7
tllist: add head/tail accessors
2018-12-15 11:46:20 +01:00
Daniel Eklöf
c67234e34f
tllist: use __typeof__ instead of __typeof
2018-12-15 11:45:57 +01:00
Daniel Eklöf
b4a3a09ae4
cmake: foobar -> f00bar
2018-12-13 19:07:33 +01:00
Daniel Eklöf
db2535bd72
main: remove ifdef
2018-12-13 19:05:52 +01:00
Daniel Eklöf
4e2f578518
yml: implement alias and '<<' expansion
2018-12-13 19:05:52 +01:00
Daniel Eklöf
92a1a35c90
module/i3: new module; tracks i3 workspaces
2018-12-13 19:05:52 +01:00
Daniel Eklöf
92c9593ff5
particle/map: new particle; maps a tag value to a particle
...
This particle is basically a dictionary mapping tag values to
particles.
2018-12-13 19:05:52 +01:00
Daniel Eklöf
cc457be4d8
tllist: typed-linked-list: a generic linked-list implementation
2018-12-13 18:56:01 +01:00
Daniel Eklöf
1712362da9
tag: add as_int(), as_bool() and as_float()
2018-11-18 11:11:50 +01:00
Daniel Eklöf
44a2dbb201
tag: rename tag.value() -> tag.as_string()
2018-11-18 11:02:21 +01:00
Daniel Eklöf
12e9304612
tag: add a boolean tag
2018-11-18 11:00:01 +01:00
Daniel Eklöf
081bccf06d
modules: put all modules in separate sub directories
2018-11-17 23:15:32 +01:00
Daniel Eklöf
97028ae28c
config: don't assume *all* modules have a single, simple, content particle
2018-11-17 22:43:51 +01:00
Daniel Eklöf
6bd698fbc8
Revert "particle/list: optionally destroy sub particles"
...
This reverts commit c5d3e934b4
.
2018-11-17 22:43:11 +01:00
Daniel Eklöf
5a155d1a8d
module: add a 'private' member to expose context
...
This allows modules that override begin/end_context to supply their
own auxiliary data.
2018-11-17 17:14:53 +01:00
Daniel Eklöf
c5d3e934b4
particle/list: optionally destroy sub particles
...
This was always done before. Now that it is optional, one can for
example generate lists dynamically, using the same set of base
particles over and over again.
2018-11-17 17:13:45 +01:00
Daniel Eklöf
24313ea75a
particle/string: take font's y_offset into account
2018-11-17 17:13:21 +01:00
Daniel Eklöf
9dd179ca67
xcb: no need to heap allocate a buffer for the vendor string
2018-11-17 13:36:09 +01:00
Daniel Eklöf
921cda0a81
bar: make location configurable (top or bottom)
2018-11-17 11:54:14 +01:00
Daniel Eklöf
7c468c20c0
xcb: add xcb_init(): checks the x server + extensions, and caches atoms
2018-11-17 11:47:34 +01:00
Daniel Eklöf
8bf8a398b9
initial commit: wip
2018-11-17 11:30:33 +01:00