Commit graph

790 commits

Author SHA1 Message Date
Tobias Witek
6a0578d2c3 [modules/battery] Incorporate @yvesh's estimated time remaining
Move changes proposed by @yvesh to show the remaining battery time into
the battery module.

see #146
2017-07-23 18:45:07 +02:00
Tobias Witek
a312269240 [modules/sensors] Add fallback for temperature retrieval
If /sys/class/ data cannot be read, fall back to "sensors -u", by
popular demand :P

see #145
2017-07-22 11:44:56 +02:00
tobi-wan-kenobi
0fb03dfa8f Merge pull request #145 from ibrokemypie/cputemp
modules/sensors: remove sensors dependency and read from device
2017-07-19 17:51:34 +02:00
ibrokemypie
58298d5e30 [modules/sensors] Remove sensors dependency and read from device
was having some problems with the current implementation as i have multiple values with the same name in sensors -u.
this way it is unambiguous and *should* just work everywhere with no lm_sensors required, though some distros might move the pseudo file elsewhere, not sure, but thats why it is configurable.
testing would be great.
also, the file is simpler too.
2017-07-19 22:14:00 +10:00
tobi-wan-kenobi
14f0af373c Merge pull request #143 from fredj/memory_format
[module/memory] Add new format string parameter
2017-07-15 10:32:57 +02:00
tobi-wan-kenobi
fa255ac8b4 Merge pull request #142 from fredj/getcrypto_bool
[module/getcrypto] Use bumblebee.util.asbool for the boolean parameters
2017-07-15 10:31:28 +02:00
Frederic Junod
37434aa5e5 [module/memory] Add new format string parameter 2017-07-15 09:48:23 +02:00
Frederic Junod
c2f9b2634a [module/getcrypto] Use bumblebee.util.asbool for the boolean parameters 2017-07-15 08:36:33 +02:00
Tobias Witek
5ca9ab796d [engine] Add logging for configuration file
For troubleshooting.

see #138
2017-07-14 17:11:20 +02:00
tobi-wan-kenobi
0eca3b8de8 Merge pull request #141 from fredj/RawConfigParser
[engine] Use RawConfigParser instead of SafeConfigParser
2017-07-14 17:05:33 +02:00
Frederic Junod
effea548ce [engine] Use RawConfigParser instead of SafeConfigParser
To allow percent signs in the config file
2017-07-14 09:33:24 +02:00
Frederic Junod
fe9c2835ad [engine] Add debug logging 2017-07-14 09:33:24 +02:00
Tobias Witek
753ac453c6 [README] Add information about configuration files 2017-07-12 18:43:17 +02:00
Tobias Witek
ab989d8ddf [engine] Allow config parameter fallback to config file
If a configuration parameter is *not* specified with -p on the
commandline, look for a INI style configuration file as fallback in
~/.bumblebee-status.conf or ~/.config/bumblebee-status.conf.

Section must be "module-parameters", like this:
[module-parameters]
github.token=<your github token>

fixes #138
2017-07-12 18:37:59 +02:00
tobi-wan-kenobi
8941f60572 Merge pull request #133 from fredj/battery_click
[module/battery] Open gnome-power-statistics on left click
2017-07-08 09:10:33 +02:00
tobi-wan-kenobi
c93c03eb15 Merge pull request #134 from fredj/doc_debug_file
Fix doc about the debug file location
2017-07-08 09:09:41 +02:00
tobi-wan-kenobi
f986662b53 Merge pull request #135 from fredj/github_right_click
[module/github] Refresh on right click
2017-07-08 09:09:17 +02:00
Frederic Junod
dc5e657bc3 [module/github] Doc for github.token OAuth scope 2017-07-08 08:27:59 +02:00
Frederic Junod
30ea9e2e69 [module/github] Refresh on right click 2017-07-08 08:22:52 +02:00
Frederic Junod
1252a548a0 Fix doc about the debug file location 2017-07-08 08:12:16 +02:00
Frederic Junod
d8018db2c2 [module/battery] Open gnome-power-statistics on left click 2017-07-08 07:07:00 +02:00
tobi-wan-kenobi
b22356d52b Merge pull request #130 from fredj/bool_param
Add bumblebee.util.asbool function
2017-07-08 07:06:42 +02:00
Frederic Junod
b0268a412b Add bumblebee.util.asbool function
Harmonize the boolean parameter value. Now `t`, `true`, `y`, `yes`, `on`, `1` are considered truthy and
everything else falsy.
2017-07-08 06:56:20 +02:00
tobi-wan-kenobi
cc6da2b70e Merge pull request #128 from ibrokemypie/patch-2
Update module dependencies in readme
2017-07-07 19:12:21 +02:00
Conor Randall
0542205dc5 Update module dependencies in readme
A few more now depend on requests, which were not added accordingly.
2017-07-08 03:03:54 +10:00
tobi-wan-kenobi
ccc952b12c Merge pull request #126 from fredj/spelling
[module/pacman] Fix spelling
2017-07-07 17:44:25 +02:00
tobi-wan-kenobi
ca4e9bbed6 Merge pull request #127 from fredj/github_requires
[module/github] Fix requirements for GitHub module
2017-07-07 17:44:09 +02:00
Frederic Junod
7abe3b7918 [module/github] Fix requirements for GitHub module 2017-07-07 17:25:02 +02:00
Frederic Junod
a834a7d356 [module/pacman] Fix spelling 2017-07-07 17:16:07 +02:00
tobi-wan-kenobi
1b95f55851 Merge pull request #123 from fredj/github_module_simplify
[module/github] Use json function from requests and 'filter' instead of a loop
2017-07-07 16:22:07 +02:00
tobi-wan-kenobi
a7448c78e3 Merge pull request #124 from fredj/github_module_left_click
[module/github] Open GitHub notifications on left click
2017-07-07 16:21:21 +02:00
tobi-wan-kenobi
3cc9901400 Merge pull request #125 from fredj/memory_doc_typo
[module/memory] Fix parameter prefix in doc
2017-07-07 16:20:53 +02:00
Frederic Junod
fd0a09945b [module/memory] Fix parameter prefix in doc 2017-07-07 08:49:31 +02:00
Frederic Junod
b48c02a3e2 [module/github] Open GitHub notifications on left click 2017-07-07 06:56:16 +02:00
Frederic Junod
0ce2a25d4e [module/github] Use 'json' from requests and 'filter' instead of a loop 2017-07-07 06:51:57 +02:00
tobi-wan-kenobi
8fb100c237 Merge pull request #122 from fredj/github_network_down
github module: move the requests.get inside the try/except
2017-07-06 19:42:13 +02:00
Frederic Junod
be7fa79e8a [modules/github] Move the requests.get inside the try/except 2017-07-06 13:52:14 +02:00
tobi-wan-kenobi
494b11be88 Merge pull request #121 from quartje/master
Add error handling and the ability to change currencies for the getcrypto module
2017-06-27 18:20:34 +02:00
Bart Geesink
915cfc681a [modules/getcrypto] Add the option to display the price in other
currencies than USD.
2017-06-26 22:35:33 +02:00
Tobias Witek
e5061b4d5f [tests/brightness] Disable failing test
Honestly: I don't know why Travis is failing on this test, it works fine
on my machine with Python 2.7. Therefore, I will disable this test until
I can get to the bottom of it.
2017-06-26 20:42:33 +02:00
Tobias Witek
fd7c5f6f0b [tests/brightness] Create open call, if it does not exist
Hopefully, this fixes the failing Travis build.
2017-06-26 20:33:06 +02:00
Tobias Witek
62f60a172f Merge branch 'jmg5e-master' 2017-06-26 19:11:18 +02:00
Tobias Witek
d37218ce4a [tests/brightness] Fix FileNotFoundError for Python 2.7 2017-06-26 19:10:51 +02:00
jmg5e
fc912a8fbc fixed tests for brightness module 2017-06-26 06:07:19 -05:00
jmg5e
11f86b75c8 removed xbacklight dependency for brightness module 2017-06-26 05:31:44 -05:00
Bart Geesink
43a25486ba [modules/getcrypto] Add error handling to the api request. This prevents
a bumblebee crash when no internet connection is present (like when a
laptop resumes from sleep mode)
2017-06-24 17:41:40 +02:00
Tobias Witek
d69f13f0b4 [modules/battery] Autodetect battery devices
The module now creates a widget for each battery device it detects and
shows the status for each of them (I don't know of anyone with more than
a single battery, but if I'm overhauling the module anyhow, might as
well do it comprehensively).

fixes #117
2017-06-18 11:35:06 +02:00
Tobias Witek
24a7c5c926 Merge branch 'brunosmmm-popups' 2017-06-16 15:37:40 +02:00
Tobias Witek
ba843355eb [engine/popup] Make tkinter module optional
If tkinter is not available, status bar should still work as expected
(but all the popup functionality will not work and likely throw errors).
2017-06-16 15:36:56 +02:00
Tobias Witek
d5875827fa Merge branch 'popups' of git://github.com/brunosmmm/bumblebee-status into brunosmmm-popups 2017-06-16 15:29:14 +02:00