Commit Graph

1264 Commits

Author SHA1 Message Date
Erik Johnson
7c25dff1a1 Let color default to i3bar color 2016-03-29 23:39:43 -05:00
Erik Johnson
f30b929752 Make number of days for event search configurable 2016-03-29 23:27:59 -05:00
enkore
9e3e7a6bc6 Merge pull request #345 from facetoe/pulseaudio-sinks
Fix sink selection bug.
2016-03-28 09:29:26 +02:00
facetoe
b111fd62f1 Clean up code. 2016-03-28 08:46:25 +08:00
enkore
f8c5fdbf45 Merge pull request #346 from facetoe/praw-updates
Disable update check that breaks everything
2016-03-27 11:21:36 +02:00
facetoe
0c17b6f435 Disable update check that breaks everything 2016-03-27 12:16:15 +08:00
facetoe
3422469df0 Fix sink selection bug.
A sink in the SUSPENDED state would never be selected. Not sure if this
solution is correct...
2016-03-27 09:58:45 +08:00
enkore
cf8ae97a43 Merge pull request #341 from grimpy/nowplaying_activatable
Now Playing: Check for mpris service in activatable services
2016-03-26 21:25:51 +01:00
enkore
e60051bdc5 Merge pull request #342 from terminalmage/updates-color
Change color_no_updates to None to default to i3bar color
2016-03-26 21:25:28 +01:00
enkore
832061c426 Merge pull request #343 from rscholer/dpms_format
dpms: Allow a different format string when DPMS is disabled.
2016-03-26 21:22:59 +01:00
enkore
a645bb74eb Merge pull request #340 from grimpy/pulse_auto_sink
Pulseaudio: Display/control active sink
2016-03-26 21:22:16 +01:00
enkore
8400d1a53a Merge pull request #339 from hasB4K/pullrequest-mouse_pos
core: Change command_endpoint and on_click for supporting i3bar mouse positions
2016-03-26 21:20:44 +01:00
Mathis FELARDOS
f26a9f9d1d core: Improve the support of other button
* This commit fix #259
* Change 'unhandled' callback by 'other'
* Add the an optional parameter 'button_id' for all callbacks

Signed-off-by: Mathis FELARDOS <mathis.felardos@gmail.com>
2016-03-25 22:27:33 +01:00
Raphael Scholer
bf71e78e23 dpms: Allow a different format string when DPMS is disabled.
Substitution of {status} is still possible, for backwards compatibility.
2016-03-25 18:05:42 +01:00
Erik Johnson
4867afeda1 Change color_no_updates to None to default to i3bar color
If ``statusline`` is not set in ``~/.config/i3/config``, it defaults to
``#ffffff`` (white). Therefore, the default behavior of the updates
module in this case is to show white for both ``color_no_updates``
(system is up-to-date) and ``color_working`` (update check in progress).

However, if one sets ``statusline`` in their ``~/.config/i3/config``,
then the color will be white when the system is up-to-date, forcing the
user to manually set ``color_no_updates`` if they would prefer it match
their default i3bar color.

This commit changes the default value of ``color_no_updates`` to
``None`` so that it matches the default i3bar unless overridden.
2016-03-25 00:29:19 -05:00
Mathis FELARDOS
95f625cd6b core: Add the middle click support and unhandled button support
* This commit fix #259
* Support of middle click button
* Add an unhandled click events for all button that will not be handled
* Remove the return type of on_click: it became useless now
* Fix the unique call of on_click in CommandEndpoint

Signed-off-by: Mathis FELARDOS <mathis.felardos@gmail.com>
2016-03-25 04:32:29 +01:00
Jo De Boeck
6161d591d2 Now Playing: Check for mpris service in activatable services 2016-03-24 21:25:27 +02:00
Jo De Boeck
b711ba96ed Pulseaudio: Display/control active sink
Make sink a property which checks which sink is currently active.
Use pactl to control volumes which gets standard insalled with libpulse
which is already a requirement.
2016-03-23 20:46:04 +02:00
Mathis FELARDOS
98e8a1cc04 core: handle callbacks that are not functions on Python 3.3
* Fix inspect.getargspec issue for non functions callbacks by creating
  an empty ArgSpec. There for we ignore all kwargs parameters.

Signed-off-by: Mathis FELARDOS <mathis.felardos@gmail.com>
2016-03-23 10:14:20 +01:00
Mathis FELARDOS
d15b3173f1 core: Change command_endpoint and on_click for supporting i3bar mouse positions
* command_endpoint: get the position from the mouse when the click
  occured. Parameters names are set here: pos_x pos_y.
  Positions are passed to on_click through keyword arguments.
* Module:
  - change __log_button_event, __button_callback_handler and on_click
    methods for handling keyword arguments.
  - "Member", "Method" and "Python" callbacks are handled by detecting
    if they have pos_x or pos_y as parameters, or if they have a
    keyword arguments. The special case of wrapped callbacks (made with
    get_module decorator for example) is handled in a similar way.
  - "External command" is handled by considering the position as a
    format dictionary. Actually no distinctions are made of how
    self.data and the new keyword argument are treated on this.
  - the parameter kwargs as been added to the doc string of on_click.
* MultiClickHandler: now handle keyword arguments.

Signed-off-by: Mathis FELARDOS <mathis.felardos@gmail.com>
2016-03-23 08:36:11 +01:00
enkore
0b49c4058a Merge pull request #333 from terminalmage/fix-updates
Fix KeyError when using backend-specific updates formatter
2016-03-22 12:31:48 +01:00
enkore
843088c9f5 Merge pull request #332 from drwahl/master
last.fm: initial commit of last.fm module
2016-03-22 12:30:22 +01:00
enkore
c35eb5ee3b Merge pull request #338 from grimpy/fix_nowplaying
now_playing: use get_dbus_method for compatibility
2016-03-22 12:29:41 +01:00
enkore
1548f521bc Merge pull request #337 from hobarrera/solaar-error-improvements
Improve solaar error handling/display
2016-03-22 12:29:01 +01:00
Jo De Boeck
6a7e80ec38 now_playing: use get_dbus_method for compatibility
Calling method directly on dbus proxy object does not always work.
2016-03-22 12:13:29 +02:00
Hugo Osvaldo Barrera
9a091ab024 Improve solaar error handling/display
Improve errors shown by solaar plugin, also cleaning up how error are
internally handled.

See #335
2016-03-21 19:51:44 -03:00
David Wahlstrom
e529fa8c95 dota2wins: truncate win percentage
Use only 2 decimals for win percentage so we don't fill all of the
status bar with decimal places.
2016-03-18 09:03:19 -07:00
David Wahlstrom
e27c0421b7 test_lastfm: pep8 compliance 2016-03-17 19:59:02 -07:00
Erik Johnson
2a886ffa1e Fix KeyError when using backend-specific updates formatter
When a backend-specific formatter (i.e. ``{Pacman}``, ``{Cower}``, etc.)
is used, and the initial "working" status is set, the loop in which the
update totals is compiled has not yet run, leading to a KeyError.

This commit fixes the traceback by setting initial values of "?" for
these formatters before the initial "working" status is set.
2016-03-16 21:47:14 -05:00
David Wahlstrom
7163122e1b last.fm: initial commit of last.fm module
This last.fm module will report to the status bar the current track that
is being played.  Last.fm requires an API key for access to their APIs,
so the user must provide their own API key which can be easily obtained
for free from http://www.last.fm/api/.
2016-03-16 16:27:02 -07:00
enkore
c287204321 Merge pull request #329 from drwahl/master
plexstatus: add unittests
2016-03-15 23:08:34 +01:00
enkore
4e3337fa4a Merge pull request #330 from terminalmage/color_icons
weather.py: Add settings entry for color_icons
2016-03-13 10:27:13 +01:00
Erik Johnson
ff31e08b74 Add settings entry for color_icons
This allows this item to be overridden in i3pystatus with custom colors
and icons.
2016-03-12 22:49:30 -06:00
David Wahlstrom
afb726e37d pep8 compliance 2016-03-11 07:30:59 -08:00
David Wahlstrom
86c7346476 remove tabs 2016-03-10 12:15:27 -08:00
David Wahlstrom
7c6114df21 plexstatus: pull xml inline
To remove external/filesystem deps, move the stream info xml inline.
2016-03-10 11:39:21 -08:00
David Wahlstrom
ad67762b43 plexstatus: add unittests
Add unittest for the plexstatus module.  Currently verifies that if
there is no stream, the output is null, and if there is a stream, it is
properly getting parsed out of the xml.
2016-03-10 10:51:19 -08:00
enkore
522d691663 Merge pull request #327 from r3dey3/fix-pulseaudio
Fix pulseaudio
2016-03-03 07:08:00 +01:00
Kenny Keslar
693d2ebdb7 Catch exceptions in button handlers 2016-03-02 15:57:57 -05:00
Kenny Keslar
7d90574212 Pulseaudio - use execute helper & fix program check 2016-03-02 15:40:16 -05:00
enkore
3800db2175 Merge pull request #326 from lenerd/master
Add mpd password support
2016-02-26 16:25:16 +01:00
Lennart Braun
f2b4447126 Fix explicit utf-8 encoding 2016-02-26 16:18:12 +01:00
Lennart Braun
530b9f2d88 Add mpd password support 2016-02-26 15:34:38 +01:00
enkore
438557eaed Merge pull request #325 from facetoe/master
Fix uneven quotes in status command.
2016-02-20 18:06:52 +01:00
facetoe
357aaa76a1 Fix uneven quotes in status command. 2016-02-20 22:51:27 +08:00
enkore
754a5d4d83 Merge pull request #323 from facetoe/google_calendar_fix
Fix dateTime bug identified in #322
2016-02-18 13:59:33 +01:00
facetoe
ee79a691b2 Fix dateTime bug identified in #322
Also fixed bug where an event with no title would cause a crash.
2016-02-18 20:29:07 +08:00
enkore
7117df6fb2 Display exception class name (in-line exception display)
cf #322
2016-02-16 13:40:30 +01:00
enkore
9e6528032b Merge pull request #320 from facetoe/docs
Update PlaintextKeyring example with new import location.
2016-02-15 11:59:49 +01:00
facetoe
ee5a706107 Document that the keyring example requires the keyrings.alt package. 2016-02-14 22:07:40 +08:00