Commit Graph

11 Commits

Author SHA1 Message Date
Simon Legner
72386c1fd3 Harmonize documentation wrt formatters 2015-04-07 19:40:28 +02:00
Lukáš Mandák
013b15ffd4 Fixed dbus error when not using player autodetection. 2015-03-07 12:47:42 +01:00
Lukáš Mandák
f726300ca5 Fixed freezing on mouse events when player is not running.
Fixed color when player is not running.
2015-01-18 19:51:55 +01:00
Lukáš Mandák
9b2591018c Updated 'now_playing' module:
- Added custom format and color, when no player is running.
- Make a difference between DBus error and no players found.
- Exdended try-cath for DBus errors.
- Changed player method calls according to docs [1] since my player did not recognize them.

[1] http://dbus.freedesktop.org/doc/dbus-python/doc/tutorial.html#interfaces-and-methods
2015-01-18 18:24:35 +01:00
Matthieu Coudron
d31cc380ef Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 .
This commit removes and replaces all the old methods 'on_*' by settings
with the same name. The old methods were renamed into more explicit names that can be used for the callbacks like "next_song","mute" etc...
For instance, you can test with:
status.register("clock",
	format=[
	    ("Format 0",'Europe/London'),
	    ("%a %-d Format 1",'Europe/Dublin'),
	    "%a %-d %b %X format 2",
	    ("%a %-d %b %X format 3", 'Europe/Paris'),
	],
	on_leftclick= ["urxvtc"] , # launch urxvtc on left click
	on_rightclick= ["scroll_format", 2] , # update format by steps of 2
	log_level=logging.DEBUG,
	)

This way much code could be removed from other modules, though I did it only for the clock module here.
2014-12-20 15:30:41 +01:00
enkore
1d46cde704 PEP 8 (I'm bored): now_playing 2014-10-14 16:41:06 +02:00
enkore
146b952180 now_playing: hide_no_player option 2014-10-14 16:28:09 +02:00
enkore
344ad4647f Moved all docs to sphinx. Nothing changes for module authors. 2014-10-12 01:32:29 +02:00
enkore
5c2af069af Fixed various issues in now_playing 2014-08-04 03:05:43 +02:00
enkore
e639335152 Much improved now_playing version with implicit player config(*).
(*) for most sane setups
2014-08-04 01:59:25 +02:00
enkore
0cfc680080 Add now_playing module 2014-08-04 01:44:53 +02:00