Commit Graph

20 Commits

Author SHA1 Message Date
Jasper Seidel
eb9460ad79 Corrected output of pomodoro module.
There was a stale comma left from a previous refactor, this caused the module
to return output as a tuple, which ended up in the json as an array.
This has the effect that modules after (left of) this module refuse to display
in i3bar.
2017-01-12 15:26:27 +01:00
Sergei Turukin
4f7d5673c0 Refactor pomodoro module
Replace `subprocess` call with built-in module for sending
desktop notifications.
2016-11-06 13:21:39 +03:00
Sergei Turukin
ccb688c404 Quick fix 2016-05-18 15:49:20 +03:00
Sergei Turukin
cea50cbe5e Fix PEP8 issue 2016-05-18 14:53:59 +03:00
Sergei Turukin
565e4a66d1 Change pomodoro counting logic 2016-05-18 14:51:54 +03:00
Sergei Turukin
ae3721ce87 Flake8 fixes 2016-05-17 14:11:26 +03:00
Sergei Turukin
d4f209bfe9 Refactor. 2016-05-17 14:07:41 +03:00
Sergei Turukin
7ec7739055 Refactor
Use integer values for states instead of strings. Feels more optimal.
2016-05-17 14:01:37 +03:00
Sergei Turukin
575f682a61 Using utcnow helps to avoid timezone issues.
On timer start timezone is provided to `datetime.now()` call, but on refresh is not.
That cause a bug with wrong time difference (it include timezone diff). Didn't
dig deep enough to figure out why there is inconsistency with timezones so just
pin timezone info as it's not useful anyway.
2016-05-17 13:54:42 +03: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
enkore
ff519fbde0 Remove shebangs and coding tags 2015-06-17 10:32:10 +02:00
enkore
0a66c57f3b pomodoro: fix missing required setting 'sound' 2015-06-05 13:25:00 +02: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
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