i3pystatus/i3pystatus
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
..
core Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
mail Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
pulseaudio Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
__init__.py This commit improves the logging system: instead of setting a boolean to enable logging, the user sets a logging level (per module). By default only critical errors are logged (ie nothing for now). 2014-12-18 18:42:58 +01:00
alsa.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
backlight.py Nicer doc markup 2014-10-12 11:35:44 +02:00
battery.py PEP 8 (I'm bored): battery 2014-10-14 16:32:07 +02:00
bitcoin.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
clock.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
cmus.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
cpu_usage_bar.py Nicer doc markup 2014-10-12 11:35:44 +02:00
cpu_usage_graph.py PEP 8 (I'm bored): cpu_usage_graph 2014-10-14 16:35:22 +02:00
cpu_usage.py Nicer doc markup 2014-10-12 11:35:44 +02:00
disk.py PEP 8 (I'm bored): disk 2014-10-14 16:37:02 +02:00
file.py PEP8 2014-04-30 14:51:41 +02:00
keyboard_locks.py Updated the docs 2014-11-15 11:36:05 +01:00
load.py fix a copypaste error / typo 2014-05-31 09:26:33 +02:00
mem_bar.py Nicer doc markup 2014-10-12 11:35:44 +02:00
mem.py PEP 8 (I'm bored): mem 2014-10-14 16:37:04 +02:00
modsde.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
mpd.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
network_graph.py Docfix 2014-10-12 11:36:12 +02:00
network_traffic.py network_traffic: do not hide by default down iface 2014-11-04 08:22:46 +01:00
network.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
now_playing.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
parcel.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
pianobar.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
pomodoro.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
pyload.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
reddit.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
regex.py PEP8 2014-04-30 14:51:41 +02:00
runwatch.py PEP8 2014-04-30 14:51:41 +02:00
shell.py This commit improves the logging system: instead of setting a boolean to enable logging, the user sets a logging level (per module). By default only critical errors are logged (ie nothing for now). 2014-12-18 18:42:58 +01:00
spotify.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
temp.py 'file' attribute of 'temp' class changed to a setting 2014-07-09 17:14:44 +00:00
text.py Follow up of https://github.com/enkore/i3pystatus/pull/149#issuecomment-67712619 . 2014-12-20 15:30:41 +01:00
uname.py Add uname module 2014-11-25 22:35:15 +01:00
uptime.py PEP 8 (I'm bored): uptime 2014-10-14 16:44:40 +02:00
weather.py Revert "Fixed indentation in order to remove pep8 errors" 2014-12-17 21:55:14 +01:00
wireless.py Added {quality_bar} to wireless module 2014-07-10 15:44:09 +02:00