Commit graph

18 commits

Author SHA1 Message Date
Tobias Witek
67e7dcbbaa [modules/brightness] Add safe guards for glob 2019-12-24 14:07:26 +01:00
Tobias Witek
7a74c5e722 [modules/brightness] Update doc 2019-12-24 14:01:31 +01:00
Tobias Witek
880e78d895 [modules/brightness] Add support for wildcards in device
Allow users to specify device paths using simple wildcards in the device
path. The first matching device will be used.

For example: /sys/class/backlight/amdgpu_*

fixes #492
2019-12-24 13:59:10 +01:00
Frank Scherrer
0185335e66
refactoring regarding errors from codeclimate 2019-06-14 12:53:38 +02:00
Frank Scherrer
30789499f5
format code to be flake8 conform 2019-06-14 12:08:56 +02:00
Frank Scherrer
7398bf9f94
add code to consider brightnessctl binary for brightness module 2019-06-14 12:04:36 +02:00
Tobias Witek
22419b813f [modules/brightness] Use 'light' instead of 'xbacklight'
If available, use 'light' for setting the background light, as per
suggestion of RiadhAmami - thanks!

fixes #332
2018-11-24 10:56:27 +01:00
Caian R. Ertl
a75c71920e [modules/brightness] Fix return format
What: Fixes the return format in `brightness` module
Why: To remove the initial zero in the brightness indicator when below hundred.
2018-01-31 18:52:16 -02:00
Frederic Junod
57204a215e Fix bad-whitespace errors found by pylint 2017-10-17 18:59:23 +02:00
jmg5e
11f86b75c8 removed xbacklight dependency for brightness module 2017-06-26 05:31:44 -05:00
Tobi-wan Kenobi
87714f12ee [modules/*] Add required executables/commandline tools to help output
fixes #39
2017-01-05 04:55:14 +01:00
Tobi-wan Kenobi
71582cbcd7 [modules/ping] Re-enable ping module
Show RTT measured by ICMP echo request/replies for a given host.

For that to work correctly, change the "full_text" callback for a widget
so that the widget itself is also passed as argument in the callback
method. That actually makes a lot of sense, since the widget can now be
used as a repository of state information.

see #23
2016-12-11 11:37:24 +01:00
Tobi-wan Kenobi
1b8385b33f [modules/brighness] Re-enable brightness module
Add a module for reporting, increasing and decreasing the brightness of
a display.

see #23
2016-12-10 14:31:18 +01:00
Tobi-wan Kenobi
a8a6c9bba2 [core] Refactor engine
This is going to be a bit more comprehensive than anticipated. In order
to cleanly refactor the core and the engine, basically start from
scratch with the implementation.

Goals:

* Test coverage
* Maintain backwards compatibility with module interface as much as
  possible (but still make modules easier to code)
* Simplicity

see #23
2016-12-03 20:38:54 +01:00
Tobi-wan Kenobi
2f3f171ca5 [core] Remove alias from module
Hide alias concept for modules in the engine. That way, the individual
modules never get to know about whether a module has been aliased or
not.

see #23
2016-12-02 18:53:34 +01:00
Tobi-wan Kenobi
ba466d5179 [modules/brightness] Add callbacks for increasing/decreasing brightness
Use xbacklight to increase or decrease brightness when the user uses the
mouse wheel over the brightness widget.
2016-11-09 19:37:09 +01:00
Tobi-wan Kenobi
f164aee5c9 [modules/brightness] Add missing integer casting for calculation
To display a nice percentage-based brightness, round it to int in all
circumstances.
2016-11-09 19:32:26 +01:00
Pavle Portic
3a19be09c3 Add brightness module 2016-11-07 22:00:02 +01:00