Commit graph

49 commits

Author SHA1 Message Date
tobi-wan-kenobi
3e79b95df4 [modules/battery] quotes 2020-04-19 13:42:16 +02:00
tobi-wan-kenobi
74c25ba2ee [util] Add central geolocation info library 2020-04-15 13:25:51 +02:00
tobi-wan-kenobi
0ef6a165e4 [modules/currency] Update to new API 2020-04-13 19:40:50 +02:00
tobi-wan-kenobi
53e2510a4c [doc] Updates and restructuring 2020-04-13 09:11:19 +02:00
tobi-wan-kenobi
b5b62c8827 [doc] Add more notes 2020-04-12 14:45:06 +02:00
tobi-wan-kenobi
d2c3a41db8 [doc] update notes 2020-04-11 09:26:28 +02:00
tobi-wan-kenobi
6b20d09d60 [doc] update notes 2020-04-11 08:59:11 +02:00
tobi-wan-kenobi
ab55cd6514 [doc] Improve theme howto 2020-04-11 08:46:09 +02:00
tobi-wan-kenobi
1cab99175b [core/theme] slight improvements for clarity 2020-04-10 16:56:15 +02:00
tobi-wan-kenobi
cde06bd33b [core/module] Re-enable aliases 2020-04-07 21:23:42 +02:00
tobi-wan-kenobi
be4e901e42 [doc] update notes 2020-04-07 21:04:22 +02:00
tobi-wan-kenobi
b5c2ca6ccf [core/output] Add generic pango support
Allow any piece of a theme that specifies a set of attributes (default,
cycles, states, widgets) to use pango *instead* of the usual attributes.

If pango is present, this will have precedence.

A practical example of this can be found in the powerline-pango theme,
which is added solely for demonstration purposes.

fixes #531
2020-04-04 14:38:37 +02:00
tobi-wan-kenobi
a43917594e [tests/event] Add some more tests for trigger-time args 2020-04-04 08:44:41 +02:00
tobi-wan-kenobi
944b223f1e [doc] small updates 2020-04-04 08:04:48 +02:00
tobi-wan-kenobi
a71828f0b4 [modules/weather] Small improvements 2020-04-04 07:47:53 +02:00
tobi-wan-kenobi
5ff0269662 [modules/weather] Update to new API 2020-04-02 22:10:18 +02:00
tobi-wan-kenobi
d0200b656d [core/config] Allow string formatted intervals
Allow users to specify intervals such as '5m', for convenience
2020-04-02 16:55:36 +02:00
tobi-wan-kenobi
2756f8fbb3 [core/theme] Fix retrieval of rotating theme values (e.g. battery)
When rotating theme values (e.g. the "charge" icon of the battery
module(s)), until now, the code just showed the raw list (because it
wasn't aware of the need to rotate).
2020-04-02 12:51:08 +02:00
tobi-wan-kenobi
232dcb733e [doc] Improve HOWTO_MODULE 2020-03-30 21:51:46 +02:00
tobi-wan-kenobi
95410e4adf [core/input] __ for private variables, use id as property 2020-03-29 14:43:04 +02:00
tobi-wan-kenobi
bd7ff3c8f1 [core] Allow modules to specify default update interval
Expanding on the implementation in d582016, add a decorator
`core.module.every()` that allows a module to specify how often to
update the module's state.

This can still be overridden using the CLI parameter `interval`.
2020-03-29 14:32:47 +02:00
tobi-wan-kenobi
da14ad3f36 [doc] Add small reminder about brightness 2020-03-29 14:13:12 +02:00
tobi-wan-kenobi
ce6fed181e [doc] Update notes 2020-03-29 13:56:43 +02:00
tobi-wan-kenobi
4f87f65f71 [doc] Add basic HOWTO write a module 2020-03-29 13:49:48 +02:00
tobi-wan-kenobi
18ea6d36d1 [doc] Add development priorities 2020-03-28 14:04:02 +01:00
Tobias Witek
9755a70578 [tests] Make tests pass again (configurable update interval) 2020-03-23 15:40:53 +01:00
Tobias Witek
7ffb2d8626 [doc] Update documentation structure 2020-03-13 14:23:11 +01:00
Tobias Witek
5851b104c5 [modules/xrandr] Adapt to new API 2020-03-13 13:56:08 +01:00
Tobias Witek
41dc387d0c [core] Re-enable WAL support
Implement a generic "load keywords and replace during runtime"
mechanism, with the first concrete use-case of WAL colors (load them
during startup, and during runtime, whenever a matching name is found in
the keywords, replace with the actual color)
2020-03-08 14:19:21 +01:00
Tobias Witek
2592069fb9 [modules/redshift] Single quotes 2020-03-07 14:06:18 +01:00
Tobias Witek
8efa101380 [util/format] Tests and minor renaming 2020-03-07 13:33:28 +01:00
Tobias Witek
0f96f2727b [doc] Some updates 2020-03-07 13:26:33 +01:00
Tobias Witek
b841ba3c93 [modules/battery] Re-enable battery module 2020-03-06 20:57:32 +01:00
Tobias Witek
c5f78ad60d [doc] Extend migration guide 2020-03-06 14:52:54 +01:00
Tobias Witek
56a6173282 [modules/memory] Simplify and use util methods 2020-03-06 14:52:16 +01:00
Tobias Witek
d2e8057141 [modules] Add CPU module
Also, change minwidth from theme.minwidth to widget property
2020-03-06 14:33:40 +01:00
Tobias Witek
28b891ef37 [doc] Extend module migration documentation 2020-03-05 21:13:48 +01:00
Tobias Witek
7420434358 [doc] Started module migration guide 2020-03-01 14:32:30 +01:00
Tobias Witek
a1aec8fff6 [core/module] Add error widgets if a module throws
Module should have to care less about thrown exceptions.
2020-03-01 14:08:16 +01:00
Tobias Witek
1a093a73b1 [core] Add prefix/postfix support 2020-02-24 14:54:11 +01:00
Tobias Witek
0a266b607e [core/output] Unify common i3 attributes 2020-02-24 14:06:57 +01:00
Tobias Witek
84833dc7db [core] Add (partial) support for states
Add states to the modules and widgets. Widgets are mostly just a
pass-through (backwards compatibility, and ease of use - making states
directly inside the widgets would require more code inside the modules
to ensure that each widget is correctly updated).

Still missing:
- Separators during partial update (right now, it takes one interval
until separators are drawn correctly)
2020-02-23 21:13:49 +01:00
Tobias Witek
66bdfacf6f [modules/pulseaudio] Show bar charts
Re-enable optional display of barcharts
2020-02-23 13:59:47 +01:00
Tobias Witek
38410adcb8 [core/theme|output] Add separators
Add a way for themes to specify custom separators. Doing that, make
nicer interfaces for drawing "supplementary" components (separators)
for widgets and generalize the attribute retrieval within the theme.
2020-02-22 13:42:44 +01:00
Tobias Witek
6143c5e5a1 [doc] NOTES: Add more notes
Otherwise, I'll forget about them
2020-02-16 14:55:26 +01:00
Tobias Witek
445c5a65f1 [core/output] Move widget/module handling inside output
The core.output module now manages the list of modules and retrieves the
widgets inside draw() itself. That way, details of drawing/updating
widgets are not visible from the outside anymore.
2020-02-02 14:18:13 +01:00
Tobias Witek
b7ca5eb3a5 [doc] Add pylint to not forget about it 2020-01-26 14:20:09 +01:00
Tobias Witek
da792f9b7b [doc] Update notes
Add more stuff that needs to be considered for backwards compatibility
2020-01-26 13:59:11 +01:00
Tobias Witek
fed80fb470 [doc] Add notes for redevelopment 2020-01-25 14:28:38 +01:00