Commit graph

537 commits

Author SHA1 Message Date
Pavle Portic
c462bd3472 [modules/weather] Show city in weather module 2017-09-29 14:31:42 +02:00
ibrokemypie
b544393c63 modules/sensors: Try intel scaling current frequency
On intel pstate drivers only the normal frequency is written to /proc/cpuinfo, not accounting for scaling/turbo.
This should fix that, though it needs testing on other computers (AMD, intel without pstate) because I am not
certain that the file only exists on Intel pstate.
2017-09-29 12:16:32 +10:00
Tobias Witek
f3ee6e0c67 [themes] Add non-powerline solarized-dark with awesome fonts
In order to do that, change the theme engine so that a theme can
override settings in the iconsets. Was probably a bug to begin with that
this was not possible.
2017-09-20 08:59:23 +02:00
Tobias Witek
81e1b25687 [modules/memory] Use /proc/meminfo instead of psutil
Try to be more accurate in calculating memory by using the /proc/meminfo
interface directly.

fixes #181
2017-09-20 06:26:39 +02:00
Tobias Witek
18131a3efe [modules/layout] Remove parameter for language configuration
Switch layout module to do full auto-detection by parsing the output of
xrandr -query.

fixes #177
2017-09-19 09:15:36 +02:00
tobi-wan-kenobi
4bbc67a6c4 Merge pull request #178 from chrismullins/fix-github-module
BUG: github module count breaks in python3
2017-09-18 19:53:28 +02:00
Frederic Junod
e70ba50a30 [module/title] Use bumblebee.util.asbool function 2017-09-18 08:30:44 +02:00
Christopher Mullins
42b42c1294 BUG: github module count breaks in python3
In python2, filter returned a list, but in python3 it returns an iterator. So
we wrap this in a list() so that it works in both.  We also want to count the
unread notifications, so this should be reflected in the code.
2017-09-17 18:54:38 -04:00
Tobias Witek
dfb1e39421 [core + modules/cmus] Have another go at fixing unicode issues
Override sys.stdout and sys.stderr in an attempt to enforce utf-8
encoding. Probably this will cause all kinds of weird issues down the
line, but at least, it seems to solve the immediate issue.

fixes #176
2017-09-16 12:22:20 +02:00
Pier-Angelo Gaetani
da21eba0d7 [module/title] added scrollable title option 2017-09-15 17:46:24 -06:00
Tobias Witek
4a9782a517 [modules/title] Make unittests run through
see #174
2017-09-15 20:05:09 +02:00
Tobias Witek
ecbde508d2 [modules/title] Python < 3.4 compatibility
Replace textwrap.shorten() with custom implementation, since it is only
available since Python 3.4. While at it, catch i3 exceptions in order to
make unit tests (hopefully) run through.

Also, Updated README.md

see #174
2017-09-15 20:02:07 +02:00
Pier-Angelo Gaetani
8bba1d1e0d [module/title] Requirement update in README.md + linting 2017-09-15 10:03:58 -06:00
Pier-Angelo Gaetani
55f48d5618 Added title module. 2017-09-15 09:51:14 -06:00
Tobias Witek
75140c77b4 [modules/currency] Make output format configurable
Add two format strings:
* sourceformat to specify the "base" format
* destinationdelimiter to format how multiple rates are delimited
2017-09-10 18:37:11 +02:00
Tobias Witek
bf53c5912c [modules/currency] Enable base and symbol configuration
The "base" currency can now be configured using the parameter "source",
and the "symbols" to be resolved can be configured using the parameter
"destination", which is a comma-separated list.

see #169
2017-09-10 09:34:02 +02:00
Tobias Witek
5551eb1d74 [modules/traffic] Use boolean util methods
see #171
2017-09-10 09:16:21 +02:00
Tobias Witek
b8bfc5b889 Merge branch 'patch-2' of git://github.com/batman-nair/bumblebee-status into batman-nair-patch-2 2017-09-10 09:14:00 +02:00
Arjun Nair
a6d7653873 Added parameter showname to hide network interface
Becomes a needless info for personal laptop usages where only one interface is used.
2017-09-10 00:23:41 +05:30
Arjun Nair
dc85a8e936 Removed returning n/a
Better not to show
2017-09-09 23:26:39 +05:30
Tobias Witek
a08db28da0 [modules/currency] Fix runaway docstring 2017-09-07 16:22:30 +02:00
Tobias Witek
f7555f8d6b [modules/currency] Add documentation and screenshot
see #169
2017-09-07 16:19:37 +02:00
Tobias Witek
4ebce517cc [modules/currency] Use unicode strings
see #169
2017-09-07 16:16:35 +02:00
Tobias Witek
86de505cda [modules] rename fx to currency
see #169
2017-09-07 16:10:22 +02:00
Antonis Karamitros
975027820f Add an fx module to track GBP/EUR and GBP/USD 2017-09-07 12:54:29 +01:00
Tobias Witek
a9ae3c5ed4 Merge branch 'master' of github.com:tobi-wan-kenobi/bumblebee-status 2017-09-07 05:12:06 +02:00
Tobias Witek
b2d0979050 [core/input] Ignore errors during callbacks
If a callback command cannot be executed, do not terminate the whole
bar. Furthermore, if such a failure occurs, try to fall back to a
globally (i.e. non widget-specific) command, so that callbacks
registered in the engine itself (such as mouse-wheel scrolling) still
function properly.

fixes #166
2017-09-07 05:10:47 +02:00
Elin Angelov
9ab02cb92b fix: exception occurred when screen is locked 2017-08-21 10:37:38 +03:00
Tobias Witek
93768e3380 [doc] Updated README.md + small logging refactor
* Fix minor grammatical errors in README.md
* Make logfile configuration a bit nicer
2017-08-20 10:59:39 +02:00
Tobias Witek
919dfdd6e1 [modules/cmus] Remove accidential print 2017-08-20 10:44:38 +02:00
Tobias Witek
f7f6783659 [modules/cmus] Fix Python3 compatibility issue 2017-08-19 16:33:42 +02:00
Tobias Witek
d2bef950ba [modules/cmus] Fix missing position/duration
Wrong parameter was used as key value, so position and duration were
missing.
2017-08-19 16:23:38 +02:00
Tobias Witek
054ad96ec2 [modules/getcrypto] Simplify code a bit
Make codeclimate happy...
2017-08-19 16:14:42 +02:00
Tobias Witek
5e007acb5c [modules/cmus] Refactor and simplify code 2017-08-19 16:07:52 +02:00
ibrokemypie
6bbeb416f8 [Modules/mpd] Add MPD host parameter
MPC uses localhost by default, but some configurations require otherwise.
Default behaviour is unchanged.
2017-08-17 17:21:42 +10:00
Tobias Witek
9619f7a754 [modules/datetime] Fix for Python3 2017-08-12 17:13:02 +02:00
Tobias Witek
9f69cc6ae9 [core] Add ability to "hide" a module with all its widgets
* A module can override the method "hidden" to specify when all it's
widgets should be hidden.
* Implement hidden for cmus and spotify
* Fix problem that cmus widgets were not displayed correctly

fixes #157
2017-08-12 17:03:04 +02:00
Tobias Witek
8376e406e5 [modules/datetime] Add encoding for locale
When creating the date/time string, use the locale's preferred encoding
to format the string.

hopefully, this

fixes #158
2017-08-12 16:44:17 +02:00
Tobias Witek
474da05929 [modules/datetime] Simplify locale logic
see #156
2017-08-07 18:32:02 +02:00
Naya Verdier
7e1e020443
[module/datetime] Fix case when no locale is set 2017-08-06 11:46:05 -07:00
Naya Verdier
aa9941ceda
[module/datetime] Add locale parameter to override system default
This change mostly affects the %x and %X variables, for example to
change to 24 hour time you might set the locale to 'en_UK.UTF-8'.
2017-08-06 11:29:41 -07:00
Frederic Junod
2183b229e3 [module/spotify] Add new format string parameter 2017-08-04 11:37:31 +02:00
Tobias Witek
e763b55b86 [modules/disk] Backwards compatibility
Add support for showUsed, showSize and showPercent, but mark them as
deprecated.

see #151
2017-08-02 05:52:53 +02:00
kymon
2fcff4c2c9 disk module enhancement 2017-08-01 17:06:11 +02:00
Frederic Junod
9be1dbc1e0 [module/battery] Simplify remaining time computation
The `power` module already return a special value on AC: `power.common.TIME_REMAINING_UNLIMITED`
2017-07-30 08:59:50 +02:00
Tobias Witek
77b962a2f5 Merge branch 'master' of github.com:tobi-wan-kenobi/bumblebee-status 2017-07-29 14:25:59 +02:00
Vidyu Krastev
216ef815c7 Locale for datetime module 2017-07-27 16:01:56 +02:00
Tobias Witek
115f03cb0f [module/battery] Add remaining time, if available
Add remaining time directly to widget, if available, and if not on
charge.

see #146
2017-07-26 16:41:30 +02:00
Frederic Junod
78adbc0b4a [module/github] Add pagination support
The GitHub API returns 50 items per page.
2017-07-25 06:52:39 +02:00
Rafael Cavalcanti
eb0035fdd0 Add click events to Spotify module 2017-07-24 11:19:39 -03:00
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
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
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
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
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
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
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
ccc952b12c Merge pull request #126 from fredj/spelling
[module/pacman] Fix spelling
2017-07-07 17:44:25 +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
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
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
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
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
Tobias Witek
6183054ac6 [modules/todo] Make path to TODO file configurable 2017-06-16 11:24:55 +02:00
Tobias Witek
4337c2b087 [modules/todo] Make unit test pass
Return value of full_text must be a string.
2017-06-16 11:22:08 +02:00
Michael Skelton
66ecf73760 Updated todo module to agnostic user path 2017-06-16 16:52:01 +10:00
Michael Skelton
250c0135e6 added bumblebee module 2017-06-16 16:51:27 +10:00
Tobias Witek
76404bf90b [modules/pulseaudio] Default pulseaudio autostart to false
To pacify @ibrokemypie ;-)

Joking aside: Not autostarting the pulseaudio daemon by default makes a
lot of sense, so adjust default behaviour.

see #108
2017-06-15 14:14:16 +02:00
Tobias Witek
d189b3a335 [modules/battery] Remove leading zeroes and use minwidth 2017-06-15 13:22:27 +02:00
Tobias Witek
68e0b51178 [modules/pulseaudio] Automatically restart pulseaudio daemon
If the current volume and mute status cannot be retrieved, the most
likely explanation is that the pulseaudio daemon is not running.
Automatically start it in such a case.

Also, add a parameter "autostart" to the pulseaudio module to disable
this behaviour in case it causes issues.

see #108
2017-06-15 11:09:00 +02:00
Tobias Witek
7e45e797f1 [modules/cpu] Enforce minimum width
Set the minimum width of the CPU widget to 99.9% to avoid constant size
changes as the utilization fluctuates between one and two digit numbers.
2017-06-15 11:00:22 +02:00
Tobias Witek
215bfd23df [modules/sensors] Remove unused imports and minor reformatting 2017-06-15 07:48:25 +02:00
Tobias Witek
df6e323fa4 Merge branch 'master' of git://github.com/dnfm/bumblebee-status into dnfm-master 2017-06-15 07:42:05 +02:00
Fernando Chu
f635bed4d0 Changed _curprice to string 2017-06-14 14:31:31 -05:00
Fernando Chu
82af91f737 Forgot to change the left-click interaction 2017-06-14 12:00:51 -05:00
Ryunaq
8d842eb043 [modules/getcrypto] Get crypto prices module
Extremely niche module that will probably never be used for getting the price of BTC, ETH and/or LTC from Kraken.
2017-06-14 11:30:48 -05:00
Ryunaq
2d3b153f0c [modules/getcrypto] Get crypto prices module
A module for getting the prices of BTC, ETH and/or LTC from Kraken.
2017-06-14 11:26:04 -05:00
Justin Wheeler
29f3e7b515 Add weather icons.
Add icons to the weather output to show condition to go with current
temperature.
2017-06-12 22:26:33 -04:00
Justin Wheeler
e93e1120f7 Show CPU MHz in sensors output.
This may need some tweaking (specifically parameters settings) to show
at what speed your CPU is running when showing sensors output.
2017-06-12 22:19:30 -04:00
Justin Wheeler
2b5c85cb8c Add packet loss to ping.
Show packet loss in ping response.
2017-06-12 22:18:49 -04:00
Tobias Witek
82d8cf1370 [modules/mocp] Initialize variables 2017-06-12 18:50:08 +02:00
Chrugi
6fd168993f Added Module for mocp (Music On Console Player)
This Module Displays the Status, Song, Artist and Time of the current song played or paused in mocp.
Clicking the Modules toggles play/pause.
I'm no programmer so alteration and feedback is welcome.
Best regards, Chrugi
2017-06-12 15:06:56 +02:00
Tobias Witek
37f3a11f68 [modules/nvidiagpu] Added docstring 2017-06-11 14:43:59 +02:00
Riley Redpath
06c85b4dc4 Added nvidiagpu module, which parses nvidia-smi to get the gpu name, temperature and vram usage. 2017-06-10 15:33:53 -05:00
Tobias Witek
7d13268f66 [engine] Report current module when error occurs
Keep track of the latest updated module in the engine part, so that the
module causing an exception can be reported correctly.

fixes #110
2017-06-10 14:08:49 +02:00
Tobias Witek
dc06611fb1 [modules] weather & github: Protect against missing data
If data cannot be retrieved for some reason (be pretty generous about
that by catching generic exceptions), instead of terminating the whole
status bar, simply report unknown data.

see #110
2017-06-10 13:59:44 +02:00
Tobias Witek
b89e384b20 [modules/pulseaudio] Ignore errors when starting pulseaudio daemon
This does not really solve the issue indicated in the ticket, but at
least it should leave the user with a working bar.

see #108
2017-06-09 11:01:25 +02:00
Tobias Witek
2eff6b4933 [modules/pulseaudio] Start pulseaudio daemon, if not running
Since the module requires the pulseaudio daemon to be running, in order
to query system information such as the default source/sink and the
current volume, start the daemon, if necessary.

fixes #108
2017-06-06 10:49:33 +02:00
Tobias Witek
d48e661d97 [modules/traffic] Fix delta calculation
A previous commit broke the traffic module by deleting widgets during
each iteration. This is fatal as the widgets contain the traffic
information from the previous iteration, for delta calculation.

Store previous traffic data in the module itself instead.
2017-06-05 15:06:56 +02:00
Tobias Witek
937e61a863 [modules/pulseaudio] Localization independence
In order to (hopefully) achieve localization independence, switch from
using pactl for retrieving pulseaudio information to pacmd, which seems
to be unaffected by the LANG environment variable.

fixes #103
2017-06-05 15:01:10 +02:00
tobi-wan-kenobi
63a14cb590 Merge branch 'master' into pep8 2017-06-05 10:56:28 +02:00
tobi-wan-kenobi
ac9c71cdb9 Merge pull request #107 from RobertSacks/publicip-region
[modules/publicip] Added 'region' and 'service' options
2017-06-05 10:55:04 +02:00
ibrokemypie
b21a62e823
[modules/cpu] Linting 2017-06-05 18:27:51 +10:00
Robert Sacks
a167ac9381 [modules/publicip] Added option to use own ip retrieval service 2017-06-05 03:53:44 -04:00
Robert Sacks
c5a1555618 [modules/publicip] Added region option to publicip module and switched to 'requests' package 2017-06-05 03:30:23 -04:00
ibrokemypie
644c55292d
[modules/sensors] Linting
Un-import os, fix indentation
2017-06-05 12:56:39 +10:00
ibrokemypie
3317b6d2d8
[module/github] Linting
Removed some unused imports, fixed indentations, removed unused variables.
2017-06-05 12:56:37 +10:00
ibrokemypie
ae536ee70d
[modules/github] Use header for token
Doesnt allow sniffers to get the access token from url.
Closes #104
2017-06-05 12:42:02 +10:00
Tobias Witek
0bfb725ae0 [modules/traffic] Recreate widget list during each iteration
To avoid "stray" devices being kept in the list, empty the widgets list
during each iteration and re-populate it from the list of available
interfaces.

fixes #101
2017-06-03 15:26:00 +02:00
Tobias Witek
2d99bdf314 [modules/traffic] Allow for state filtering
The optional parameter "states" can now be used to filter which
interfaces to display. "^" can be used for negation.

For example, to only show "up" interfaces:

-p traffic.states=up

To show all interfaces not in "down" state:

-p traffic.states=^down

fixes #98
2017-06-03 15:20:27 +02:00
ibrokemypie
277ea2f255 [module/cpu] More useful rounding
psutil.cpu_percent() only outputs to one decimal place anyway, so the trailing 0 is useless.
The prepended 0 is also not important, will only be not 0 at 100% utilization, so why not let it be 100% then and take up one less column otherwise?
2017-06-02 16:25:49 +10:00
brunosmmm
85ec7c4331 example usage of popup menu in the bluetooth module. 2017-06-01 20:25:40 -04:00
brunosmmm
2e152d1be4 simple popup menu implementation using tkinter 2017-06-01 20:23:18 -04:00
tobi-wan-kenobi
3b1c28955d Merge pull request #95 from brunosmmm/disk-options
Disk options
2017-06-01 19:57:22 +02:00
brunosmmm
40d767ae6e added an option to select which file manager to open 2017-06-01 12:27:39 -04:00
tobi-wan-kenobi
7410f96aa1 Merge pull request #94 from brunosmmm/bluetooth-plugin
Simple bluetooth module with toggling and status display
2017-06-01 18:23:39 +02:00
brunosmmm
d13ffcd9f7 added more options to the disk module 2017-06-01 12:21:10 -04:00
brunosmmm
185690f030 Simple bluetooth module with toggling and status display 2017-06-01 12:12:49 -04:00
ibrokemypie
7527cfcb48 [modules/memory] Add parameter to only show used memory
No change to default behaviour, but adds boolean to only display used rather than used, total and percentage.

To only show used  memory:
-p memory.usedonly=1
2017-06-02 00:29:09 +10:00
Robert Sacks
c57ddc48fe Removed unwanted comments in publicip module 2017-05-30 04:49:58 -04:00
Robert Sacks
d98a998c2a Added publicip module 2017-05-30 04:33:53 -04:00
Tobias Witek
bbe43dccf4 [modules/spotify] More generic error handling
OK - I admit it: Mostly for the benefit of Travis and automated testing,
which complains about the DBusException, move to a more generic
exception.

However, this is probably a good idea anyhow, because independently of
the error, setting the song to an empty string is probably the best bet.
2017-05-27 13:29:08 +02:00
tobi-wan-kenobi
3fdfc7b272 Merge pull request #88 from yvesh/spotifymodule
[modules/spotify] Add rudimentary spotify currently playing module
2017-05-27 13:15:56 +02:00
tobi-wan-kenobi
27a06fc666 Merge pull request #87 from alrayyes/mpd
Mpd widget
2017-05-27 11:29:18 +02:00
Yves Hoppe
ec2b39f04c
[Output] Only draw widget when full text is not empty 2017-05-26 21:36:01 +02:00
Yves Hoppe
cffd2b8609
handling closed spotify better 2017-05-26 21:33:58 +02:00
Yves Hoppe
c3789a1399
[modules/spotify] Add rudimentary spotify currently playing module 2017-05-26 21:14:05 +02:00
Ryan
49f9cc90bc added mpd support 2017-05-26 19:48:23 +02:00
Tobias Witek
710342d7d4 [modules/github] Minor refactoring
* Use requests library instead of curl
* Exactly parse the github API responses
* Return a string value in order to pass unit tests

see #86
2017-05-26 13:32:47 +02:00
Yves Hoppe
320b4b466e
Plugin description 2017-05-26 11:11:58 +02:00
Yves Hoppe
99080e7ac3
[modules/github] Add rudimentary GitHub unread messages module 2017-05-26 11:06:20 +02:00
Tobias Witek
27f5091ae3 [modules/nic] Add parameter to filter by state
Allow the user to filter the state of devices that should be displayed.
It's possible to use both white- and blacklists (and combinations).

For example, to only show devices in state "up":
-p nic.states=up

To only show devices that are not down:
-p nic.states=^down

fixes #84
2017-05-22 18:09:00 +02:00
Moses Miller
84d4e87fbf
Fixed the bug of ping.interval raising an exception with any value 2017-05-15 20:57:24 -07:00
thunderstruck47
50330e38d1 using io.open, instead of open (python 2.6/2.7) 2017-05-13 17:41:43 +03:00
thunderstruck47
8d4db0282f explicity encoding only for Python 3 2017-05-13 17:16:34 +03:00
thunderstruck47
bfa06cead1 dont rely on platform specific encoding 2017-05-13 16:36:25 +03:00
Tobias Witek
12a3aa5456 [modules/stock] Modify symbol decoding for Python3 compatibility
In Python3, string doesn't have a "decode" method. I will need to find a
proper fix for this, but for now, the workaround seems to do the trick.
2017-05-11 19:43:59 +02:00
Michael P. Soulier
c73a3cfa34 Merge remote-tracking branch 'tobi-wan-kenobi/master' 2017-05-10 15:46:57 -04:00
Michael P. Soulier
ba38a9d4a0 Added a currencies parameter to the stock ticker. 2017-05-10 15:38:44 -04:00
Tobias Witek
fdcc908d83 [core] Use class theme, if no specific module theme matches
For modules that use aliases, until now, *only* the alias theme was
considered. This is typically a bad idea (tm), as the "generic" case is
that of a module theme (e.g. "disk", not that of a theme per instance of
the module (i.e. "home", "root", etc.)).

Therefore, introduce the concept of a "class" theme that can be
optionall overridden by a specific module theme.

As a pleasant side-effect, this should bring back the disk icons for all
instances of the disk module :)

fixes #79
2017-05-10 20:01:29 +02:00