Commit Graph

8 Commits

Author SHA1 Message Date
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
Sergei Turukin
362c3ec83e Fix typos 2014-12-10 18:26:15 +02:00
Sergei Turukin
105e92b5aa Update format description for pomodoro module 2014-12-10 18:25:15 +02:00
Sergei Turukin
45c94bd5cd Make format configurable, fix bug, progess output 2014-12-09 16:49:27 +02:00
Sergei Turukin
b46c68ed50 Reset timer right on left click 2014-10-28 11:11:32 +02:00
Sergei Turukin
9a83f7117e Pep8 formatting 2014-10-23 14:38:09 +03:00
Sergei Turukin
c64e759b5a Update docs 2014-10-22 18:26:20 +03:00
Sergei Turukin
e0cb834ae1 Add pomodoro module.
Add _Pomodoro_ module. See http://en.wikipedia.org/wiki/Pomodoro_Technique
It uses `aplay` for playing alarm sound. It also uses `notify-send` utility
for nitification.
2014-10-22 18:26:07 +03:00