URI: 
       introduce a scale for lenght of the pomodoro bar - pomodoro - a pomodoro timer
  HTML git clone git://kroovy.de/pomodoro
   DIR Log
   DIR Files
   DIR Refs
   DIR README
   DIR LICENSE
       ---
   DIR commit ab16aade31e8768a5452308d50f18916788e03b5
   DIR parent 03dc357cac1558ba3e6d2a079256005927b11cd2
  HTML Author: kroovy <me@kroovy.de>
       Date:   Sat, 10 May 2025 15:48:32 +0200
       
       introduce a scale for lenght of the pomodoro bar
       
       Diffstat:
         M pomodoro.sh                         |      15 ++++++++-------
       
       1 file changed, 8 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/pomodoro.sh b/pomodoro.sh
       @@ -5,23 +5,24 @@ relax="▒"
        delim=':'
        pomfile="/home/$USER/.pomodoro"
        sound=1
       +scale=1
        
        ding() { [ $sound ] && paplay ~/.sounds/ding.mp3; }
        
        touch $pomfile
       -for i in $(seq 60); do
       +for i in $(seq $(($scale * 30))); do
                echo -n "" > $pomfile
       -        for j in $(seq 60); do
       +        for j in $(seq $(($scale * 30))); do
                        if [ $j -le $i ]; then
       -                        [ $j -le 50 ] && echo -n "$work" >> $pomfile
       -                        [ $j -gt 50 ] && echo -n "$relax" >> $pomfile
       +                        [ $j -le $(($scale * 25)) ] && echo -n "$work" >> $pomfile
       +                        [ $j -gt $(($scale * 25)) ] && echo -n "$relax" >> $pomfile
                        else
                                echo -n " " >> $pomfile
                        fi
       -                [ $j -eq 50 ] && echo -n "$delim" >> $pomfile
       +                [ $j -eq $(($scale * 25)) ] && echo -n "$delim" >> $pomfile
                done
                echo "" >> $pomfile
       -        [ $i -eq 50 ] && ding &
       -        sleep 30
       +        [ $i -eq $(($scale * 25)) ] && ding &
       +        sleep $((60 / $scale))
        done
        ding