[polybar] Fix pomodoro timer script display

Moved pomo submodule directory to avoid conflict with pomo generated
file.

Right-clicking will now always reset the pomodoro timer. It will not
automatically start again. Left-click it once to initialize a new run,
and again to actually start the timer.

The symbol signifies this:
Empty tomato, timer stopped.
Half-full tomato, timer paused.
Clock-tomato and a timer beside it, work timer running.
Coffee cup, break timer running.
This commit is contained in:
Marty Oehme 2020-05-26 13:42:14 +02:00
parent d4fda84c3b
commit d37e65f03c
No known key found for this signature in database
GPG Key ID: 0CCB0526EFB9611A
4 changed files with 5 additions and 5 deletions

4
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "polybar/.local/share/pomo"]
path = polybar/.local/share/pomo
[submodule "polybar/.local/share/pomo-app"]
path = polybar/.local/share/pomo-app
url = https://github.com/jsspencer/pomo.git

View File

@ -28,7 +28,7 @@ if [ -z "$1" ]; then
# B (break)
# P (paused) with pomodoro symbols
# remove seconds *except for* when 00 minutes reached
display=$(echo "$display" | sed -e 's/P.*$/  /;s/W/ /;s/B/ /;/00:/! { s/:[[:digit:]]\+$// }')
display=$(echo "$display" | sed -e 's/--:--/ /;s/P.*$/  /;s/W/ /;s/B/ /;/00:/! { s/:[[:digit:]]\+$// }')
echo "$display"
sleep 1
done
@ -36,6 +36,6 @@ elif [ "$1" = "toggle" ]; then
pomo pause
restart_notify
elif [ "$1" = "restart" ]; then
pomo stop && pomo start
pomo stop
restart_notify
fi

View File

@ -1 +1 @@
../share/pomo/pomo.sh
../share/pomo-app/pomo.sh