[polybar] Add icons to pomo timer
Added running and paused tomato icons; as well as break coffee icon. Removed display of seconds, unless the last minute of a timer is running.
This commit is contained in:
parent
657ef21b0b
commit
2d78271113
1 changed files with 7 additions and 1 deletions
|
|
@ -23,7 +23,13 @@ restart_notify() {
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
run_notify
|
run_notify
|
||||||
while true; do
|
while true; do
|
||||||
pomo clock
|
display=$(pomo clock)
|
||||||
|
# replace W (work)
|
||||||
|
# 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:]]\+$// }')
|
||||||
|
echo "$display"
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
elif [ "$1" = "toggle" ]; then
|
elif [ "$1" = "toggle" ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue