Another pomodoro widget



There is a 25+5 seconds screencast

#!/bin/sh # inspired from http://feedelli.org/2012/07/29/bash-command-line-pomodoro-timer.html # punch-time-tracking: http://code.google.com/p/punch-time-tracking/ # # with awesome-client, you need do something in your rc.lua: # #     ...  #     require("awful.remote") -- make `awesome-client` work #    ...  #     pomodoro = awful.widget.progressbar #    pomodoro:set_max_value(100) #    pomodoro:set_background_color('#494B4F') #    pomodoro:set_color('#AECF96') #    pomodoro:set_gradient_colors({ '#AECF96', '#88A175', '#FF5656' }) #    pomodoro:set_ticks(true) #    ...  #     mywibox[s].widgets = { #            ...  #             mytaglist[s], #            pomodoro.widget, -- right here #    ...  #  work=$((25*60)) rest=$((5*60)) for i in $(seq 100); do     echo "pomodoro:set_value(${i})" | awesome-client sleep $(echo "scale=3;${work}/100" | bc) done for i in $(seq 100); do     j=$((100-i)) echo "pomodoro:set_value(${j})" | awesome-client sleep $(echo "scale=3;${rest}/100" | bc) done