dattanchu / pymodoro

Pymodoro is the Pomodoro for Xmobar or Dzen. It runs and it tells you where you are in your current pomodoro session.
MIT License
65 stars 18 forks source link

Now we can run pymodoro for only one line of output. #33

Closed onurgu closed 9 years ago

onurgu commented 10 years ago

I made this change to run pymodoro for getting only one result and exiting.

Add -o to just get one line and exit.

I needed this because AFAIK dzen2 does not support long-running processes.

I then added this to my conkyrc:

background yes
out_to_console yes
out_to_x no
# Update interval in seconds
update_interval 1

TEXT
^i(/home/onur/.xmonad/dzen2/xbm/cpu.xbm) ^fg(\#FFFFFF)${cpu}% ^i(/home/onur/.xmonad/dzen2/xbm/mem.xbm) ^fg(\#FFFFFF)${memperc}% ^fg(\#ebac54) ^fg(\#FFFFFF)${execi 10 python ~/.pymodoro/pymodoro.py -o}
dattanchu commented 10 years ago

This is great. Can you update the README.md as well so future users of dzen2 can get up and running faster?