tobi-wan-kenobi
960792b2e5
[tests] fix module load test for python 3.6 and further
2020-12-27 14:49:12 +01:00
Tobias Witek
34dadadf90
[core] re-enable minimize of widgets
...
by default, allow toggling the minimized state of a widget via the
middle mouse and draw a single unicode char instead of the actual
widget, maintaining all states.
fixes #661
2020-06-23 15:51:14 +02:00
Tobias Witek
39fa7788b4
[tests] switch to pytest
2020-06-20 14:53:44 +02:00
tobi-wan-kenobi
16269ff01e
[core/input] add variables to custom cli calls
...
when specifying event bindings via CLI (e.g. disk.left-click=thunar),
allow for variables ({instance} and {name}, in particular).
fixes #650
2020-06-09 20:29:51 +02:00
tobi-wan-kenobi
02a80840a1
[core] more black'ing
2020-05-16 12:00:55 +02:00
tobi-wan-kenobi
7584366adc
[tests] add more tests
2020-05-16 11:57:27 +02:00
tobi-wan-kenobi
30c1f712a6
[formatting] reformat using "black -t py34"
...
getting rid of thinking about consistent formatting...
2020-05-03 11:15:52 +02:00
tobi-wan-kenobi
2ab575d190
[core] do not scroll errors
...
to make errors easier to diagnose, do not scroll them, but instead fully
show them.
also, re-introduce the supplementary fields for the dwm bridge, kudos to
@somospocos
2020-05-01 15:34:29 +02:00
tobi-wan-kenobi
1e4955d4b8
[core/module] Make name and module_name attributes
2020-04-30 12:50:24 +02:00
tobi-wan-kenobi
9cd9ff626d
[core] make widget name an attribute
...
first, this fixes #607
also, i think it slightly simplifies code to make "simple" stuff like
names, etc. attributes instead of methods all the time.
so, expect this to be extended to other components, as well.
2020-04-30 12:42:34 +02:00
Tobias Witek
48c21a902e
[tests/module] Skip failing tests in Python 3.{4,5}
2020-03-06 14:45:09 +01:00
Tobias Witek
efc2e4f94e
[modules] Separate modules into core & contrib
...
Also, improve errors when importing a module fails.
Also, add more tests.
2020-03-06 14:14:34 +01:00
Tobias Witek
47950240d0
[tests/core/module] Add tests for widget retrieval by name
2020-03-05 21:17:06 +01:00
Tobias Witek
d19eb72296
[tests/module] Test generation of error widget
...
When a module/widget throws, an error widget should be produced.
2020-03-04 21:06:09 +01:00
Tobias Witek
533b8ca0cc
[modules] Re-add module nic
2020-03-01 14:36:12 +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
fd57af9325
[tests] Make tests pass again
2020-02-23 14:55:13 +01:00
Tobias Witek
6adc497f68
[core] Add support for module parameters
...
Parse '-p' parameters and make them accessible via 'parameter()' from
within a module (basically, restore the previous configuration
facility).
Still TODO: Add support for configuration files.
2020-02-04 21:09:11 +01:00
Tobias Witek
3a531c359f
[core/module] Add config to module
...
Add access for all modules to the commandline parameters (called
"config" in bumblebee-status)
2020-02-03 21:30:06 +01:00
Tobias Witek
7a9cb8b533
[core/module] Add very basic widget capability
2020-01-26 14:06:09 +01:00
Tobias Witek
acf9d6214e
[tests] Restructure
...
Put tests into directory structure equivalent to that of the code
itself, for better separation (hopefully)
2020-01-25 14:27:41 +01:00