Daniel Eklöf
c795718ad7
config: i3: handle the 'spacing' attribute
2018-12-30 20:39:45 +01:00
Daniel Eklöf
b7e7ad522f
remove module subfolders
2018-12-29 22:18:08 +01:00
Daniel Eklöf
86425fbe48
config: all particles now take a 'on_click_template' argument
2018-12-29 21:23:27 +01:00
Daniel Eklöf
3135f1d36d
particle: all particles now take margin arguments
...
Ramp and map however, doesn't allow any values other than 0 (yet).
2018-12-29 20:33:38 +01:00
Daniel Eklöf
1f182b862e
particle/progress-bar: allow user to configure an on-click handler
...
Since we're typically interrested in *where* (on the progress-bar) the
user clicked, we need a way to pass the clicked position to the
handler.
Normally, the on-click handler is expanded when a particle
instantiates its exposable. At this point, we (obviously) don't have
the click position.
This is solved by expanding the handler a second time, when the bar is
clicked.
Thus, the user can use the "{where}" tag in the click handler. "where"
will be expanded to a percentage value (0-100).
2018-12-29 17:36:34 +01:00
Daniel Eklöf
88bcf425bf
particle/list: on_click handler
2018-12-29 16:15:37 +01:00
Daniel Eklöf
68606e49ed
config: clean up particle_list_from_config()
2018-12-29 16:14:09 +01:00
Daniel Eklöf
9e5dbfe27d
particle/string: constructor now takes an 'on_click_template'
2018-12-29 14:38:10 +01:00
Daniel Eklöf
6019129acc
config: clean up particle_string_from_config()
2018-12-29 14:30:09 +01:00
Daniel Eklöf
1ed0dab6ad
config: raise default battery poll interval from 30s to 60s
2018-12-28 12:41:38 +01:00
Daniel Eklöf
8d94202057
particle/progress-bar: renders a progrss-bar-like thingy
2018-12-27 14:22:05 +01:00
Daniel Eklöf
ce895ac44f
particle/empty: placeholder particle, renders nothing
...
But may have margins.
2018-12-27 14:21:33 +01:00
Daniel Eklöf
9a94c9c1f7
module/mpd: monitors MPD
2018-12-27 11:36:38 +01:00
Daniel Eklöf
a745436ee2
decoration: stack: stacks multiple decorations on top of each other
2018-12-26 15:59:48 +01:00
Daniel Eklöf
09cd27b688
decoration/underline: draws a line at the bottom of the particle
2018-12-26 15:59:16 +01:00
Daniel Eklöf
0094cc1269
config: load decorations. All particles may have one
2018-12-26 15:31:16 +01:00
Daniel Eklöf
1929099ca4
module/backlight: new module
2018-12-26 12:44:17 +01:00
Daniel Eklöf
0f5d626177
config: list has a default right-spacing of 2
2018-12-18 19:52:36 +01:00
Daniel Eklöf
e0bd7abec6
config: battery: use name from config, instead of hardcoded "BAT0"
2018-12-17 19:59:44 +01:00
Daniel Eklöf
ef594b877b
module/xkb: monitor current xkb layout
2018-12-17 19:59:29 +01:00
Daniel Eklöf
e186c3447d
module/battery: remove unused left/right spacing options
2018-12-16 19:17:14 +01:00
Daniel Eklöf
0df1df2207
config: sort includes
2018-12-16 19:16:25 +01:00
Daniel Eklöf
47b36bdd35
particle/ramp: new particle, selects one particle from a list
...
The ramp particle is configured with a tag name and a list of
particles.
At instantiation time, a single particle is selected from the list,
depending on the tag value and it's minimum and maximum values.
I.e. this particle acts kind of like a progress bar.
2018-12-16 16:20:45 +01:00
Daniel Eklöf
f6d0785836
config: remove debug
2018-12-16 15:58:35 +01:00
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
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
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
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
921cda0a81
bar: make location configurable (top or bottom)
2018-11-17 11:54:14 +01:00
Daniel Eklöf
8bf8a398b9
initial commit: wip
2018-11-17 11:30:33 +01:00