Commit Graph

8 Commits

Author SHA1 Message Date
Holden Salomon
3b82e8de1e Added previous song support, activated by scrolling down while over the module 2015-12-05 13:37:32 -05:00
Holden Salomon
ca84690265 Fixed random flashing of the module output 2015-09-16 20:34:00 -04:00
Holden Salomon
ddb97dfbdf Total rewrite into an IntervalModule, how it should have been. Added {status}, format_not_running, color_not_running, and comments to make it readable. This improvement was loosely based on the cmus module 2015-09-13 16:59:22 -04:00
Christopher Ganas
404c9ea348 Updated spotify module to check for metadata on start. 2015-01-04 16:07:25 -05: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
f06a76ad52 PEP8 2014-04-30 14:51:41 +02:00
enkore
24d5795396 Merge spotify module ( #53 ) 2014-04-28 10:43:55 +02:00
cganas
a26efaac95 added spotify support. 2014-04-28 02:23:27 -04:00