Commit graph

2700 commits

Author SHA1 Message Date
Tobi-wan Kenobi
feb5719ecc [modules/weather] Minor reworks
* Use app-specific API key for bumblebee-status
* Add some parameters (location, unit, update interval)
* Make interval calculation based on time, not number of calls
2017-02-26 08:07:58 +01:00
Pavle Portic
49af9c14d6 [modules/weather] Add rudimentary weather module 2017-02-26 02:42:27 +01:00
Tobi-wan Kenobi
d2c4a316a0 [README] Add list of supported Python versions 2017-02-25 07:54:03 +01:00
Tobi-wan Kenobi
72c60b8c1e [Travis] Remove Python 3.2 from list of support versions
Python 3.2 does not support unicode literals (u"some string"), which are
required for the correct display of icons.

closes #43
2017-02-25 07:51:19 +01:00
Tobi-wan Kenobi
817b8468b6 [Travis] Add Python 3.2
see #43
2017-02-25 07:32:55 +01:00
Tobi-wan Kenobi
2a1a1f10b8 [travis] Add Python 3.6 to tests
see #42
2017-02-25 07:27:06 +01:00
Tobi-wan Kenobi
d19efbe21a [README] Add note regarding awesome font
see #41
2017-02-24 18:28:41 +01:00
Tobi-wan Kenobi
633f167f18 [testjson] Exclude known invalid JSON from tests
There are invalid JSON files in themes/ that are used for unit tests, so
exclude those from the testjson.sh execution.

see #41
2017-02-24 18:13:17 +01:00
Tobi-wan Kenobi
188ee36780 [modules] Add redshift module
New module that shows the current state of redshift
(day/night/transition) and, if in transition, also shows
the day/night percentages.

fixes #40
2017-01-21 11:23:29 +01: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
d3fc5094f8 [modules/gpmdp] Make unit tests run through
* full_text needs to return a string *always*
* relax full_text check to also allow unicode results
2017-01-02 22:26:57 +01:00
tobi-wan-kenobi
3d1f4ddf25 Merge pull request #38 from paxy97/master
[modules/gpmdp] Add Google play music desktop player support

Requires commandline tool "playerctl" for next/prev/play/pause functionality

Requires commandline tool "gpmdp-remote" for song information
2017-01-02 22:13:14 +01:00
Pavle Portic
0f1725982a [modules/gpmdp] Add Google play music desktop player support 2017-01-02 21:44:53 +01:00
Tobi-wan Kenobi
a705adf207 [modules/pulseaudio] Fix status extraction
With multiple devices, extracting mute status and volumes failed
(because the loop would continue even after it found the correct device)
2016-12-20 07:49:21 +01:00
Tobi-wan Kenobi
846d28714a [tests] Add tests for bumblebee.util
Add tests for the utility functions and fix a few embarrassing bugs in
the process.
2016-12-17 09:00:49 +01:00
Tobi-wan Kenobi
672413c238 [CI] Add .coveragerc to exclude tests from coverage report 2016-12-17 08:46:11 +01:00
Tobi-wan Kenobi
9a350ddc2a [tests/config] Add tests for helptexts
Ensure that each theme is listed in the helptext and that there is a
helptext entry for every module.
2016-12-17 08:42:23 +01:00
Tobi-wan Kenobi
4f7666533c [modules/pulseaudio] Refactor callback registration
Make it easier to add/extend callbacks in the future.

fixes #35
2016-12-17 08:16:10 +01:00
Tobi-wan Kenobi
cfd1406525 [modules/pulseaudio] (Hopefully) improve parsing logic
Improve parsing logic to make code easier to understand and extend.

fixes #32
2016-12-17 08:06:58 +01:00
Tobi-wan Kenobi
220bb9bf60 [core/input] Ugly hack for responsiveness
Somehow, the fix in the previous commit didn't work, it seems that
sometimes epoll() doesn't trigger, even if there is more data in
sys.stdin. I'm sure I'm doing something horribly wrong here.

Anyhow, as a quick fix, check for the open bracket to be sure to not
buffer the first event too long.
2016-12-17 08:04:21 +01:00
Tobi-wan Kenobi
f6be25bc73 [core/input] Move from select to epoll
Use epoll instead of select in order to be able to use level-triggered
semantics and not get stuck on the first event.
2016-12-17 07:43:38 +01:00
Tobi-wan Kenobi
31f9154be2 [help] Add theme and module listing
Re-enable the possibility to list available themes and modules.

fixes #29
2016-12-17 07:05:23 +01:00
Tobi-wan Kenobi
71cc0c216f [engine/config] Add helptexts 2016-12-15 19:44:49 +01:00
Tobi-wan Kenobi
5e305bf3b6 [engine/input] Re-enable mouse button parameter bindings
Re-enable the possibility to define custom mouse actions by binding
commands to "<alias|module>.<left-click|right-click|...>". These
commands are then executed as shell commands.

fixes #30
2016-12-15 19:41:50 +01:00
tobi-wan-kenobi
41b61d05d5 Merge pull request #33 from paxy97/master
[theme/gruvbox] Remove empty space around the modules
2016-12-13 07:08:05 +01:00
Pavle Portic
49fdc8e724 [theme/gruvbox] Remove empty space around the modules 2016-12-12 22:06:46 +01:00
Tobi-wan Kenobi
f8fc74870c [doc] Add screenshot of layout module 2016-12-11 15:01:51 +01:00
Tobi-wan Kenobi
999547f794 [modules/layout] Re-enable keyboard layout switcher
Displays the current layout and allows switching to next/previous
configured layout via mouse clicks.
2016-12-11 15:00:13 +01:00
Tobi-wan Kenobi
b4f9123ba4 [README] Update badges for better readability in .md file 2016-12-11 13:50:33 +01:00
Tobi-wan Kenobi
75f5af4866 [core/input] Skip partial events
Clicking on a separator creates partial events ("instance" missing).
Ignore those events, as they crash the input processor.

fixes #31
2016-12-11 13:43:34 +01:00
Tobi-wan Kenobi
90adbfbec9 [README] Add code coverage information
Even if it is not stellar...
2016-12-11 13:26:38 +01:00
Tobi-wan Kenobi
a5ed2830ac [themes] Fix gap issues 2016-12-11 13:26:02 +01:00
Tobi-wan Kenobi
0ea29c0244 [CI] More tests to get Travis to send coverage info to Code Climate 2016-12-11 13:24:37 +01:00
Tobi-wan Kenobi
27d1d15b23 [CI] Enable Travis Code Climate coverage integration
No idea whether this will work...
2016-12-11 13:17:43 +01:00
Tobi-wan Kenobi
abb6d4aeeb [README] Update branch info for Travis badge 2016-12-11 13:12:22 +01:00
Tobi-wan Kenobi
4cd8e73564 Merge branch 'engine-rework'
At long last, this fixes #23

(and probably introduces millions of new bugs)
2016-12-11 13:10:44 +01:00
Tobi-wan Kenobi
9b9403d92e [doc] Update screenshot for CPU module 2016-12-11 13:08:07 +01:00
Tobi-wan Kenobi
c3214a8a3b [bin] Re-add i3bar load script 2016-12-11 13:05:49 +01:00
Tobi-wan Kenobi
8bde4845e0 [theme] Add ASCII "icons" 2016-12-11 13:05:19 +01:00
Tobi-wan Kenobi
f441be7d11 [doc] Re-add screenshots 2016-12-11 12:58:46 +01:00
Tobi-wan Kenobi
65ae8c242b [themes] Re-enable themes
see #23
2016-12-11 12:58:03 +01:00
Tobi-wan Kenobi
d10fc814ed [modules/dnf] Re-enable DNF update checking module
see #23
2016-12-11 12:53:31 +01:00
Tobi-wan Kenobi
dd6b13265d [modules/pacman] Re-enable pacman update information
see #23
2016-12-11 12:42:49 +01:00
Tobi-wan Kenobi
9878bbf971 [tests] Fix automated testrun in Travis
Forgot to mock Popen() in setUp
2016-12-11 12:31:37 +01:00
Tobi-wan Kenobi
9fe0915730 [tests] Add mocking for module tests 2016-12-11 12:26:28 +01:00
Tobi-wan Kenobi
1d6ca352b9 [modules/xrandr] Re-enable xrandr module
Displays the connected screens and allows the user to enable/disable
them.

see #23
2016-12-11 12:23:33 +01:00
Tobi-wan Kenobi
17ee621a5a [modules/ping] Spawn thread on-the-fly
Instead of having a thread that runs in the background continuously,
spawn a new one for every update interval. That speeds up the tests
quite a lot.

see #23
2016-12-11 11:50:15 +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
4f6ec89d3c [doc] Add Code Climate issue count 2016-12-11 09:06:23 +01:00
Tobi-wan Kenobi
666daff9a6 [modules/pulseaudio] Re-enable pulseaudio module
Display volume for default PulseAudio source/sink, change volume and
mute/unmute device.

see #23
2016-12-11 08:51:56 +01:00