Commit Graph

25 Commits

Author SHA1 Message Date
Andrey Astafyev
b7324eed6a fixed mistype in song_length formatter 2017-03-13 09:47:21 +01:00
ncoop
41a2681008 Resolve E501s. 2016-12-29 00:50:20 -08:00
ncoop
e968ec8bf1 'functools' imported but unused. 2016-12-29 00:50:20 -08:00
ncoop
53a4fbfe4d Update introductory doc. 2016-12-29 00:50:20 -08:00
ncoop
3c19752ad3 Implement and document player_prop callback. 2016-12-29 00:50:17 -08:00
ncoop
00a434774d Abstract the dbus string constants. 2016-12-28 18:42:05 -08:00
ncoop
34e87927de Implement and document player_command callback. 2016-12-28 18:41:56 -08:00
Jo De Boeck
be83476aef Now playing: be more tolerant for mpris properties
Some mpris clients dont implement all properties
2016-04-08 13:23:53 +02:00
Jo De Boeck
6161d591d2 Now Playing: Check for mpris service in activatable services 2016-03-24 21:25:27 +02: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
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
enkore
dec534ce81 Fix errorneous recursive replace mishap 2016-01-27 20:02:51 +01:00
enkore
0743767385 Two line if 2016-01-27 20:00:50 +01:00
enkore
612b8b07eb Update modules to a7583a9
Not updated for various reasons:
clock,
dpms,
gpu_temp,
load,
mail,
mem_bar,
modsde,
net_speed,
pianobar,
pulseaudio,
regex [no named formatters],
runwatch,
shell,
solaar,
temp,
text,
updates,
weather,
whosonlocation,
xkblayout,
zabbix


This might break something: I can't test all these modules. If it does,
file a bug / open a PR / send me a note.
2016-01-27 19:53:33 +01:00
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