From 2d78271113a94a8cdb15ee00e3be5a57bb55c288 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 25 May 2020 15:41:15 +0200 Subject: [PATCH] [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. --- polybar/.config/polybar/scripts/poly-pomo | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/polybar/.config/polybar/scripts/poly-pomo b/polybar/.config/polybar/scripts/poly-pomo index 9616b16..ccef2f4 100755 --- a/polybar/.config/polybar/scripts/poly-pomo +++ b/polybar/.config/polybar/scripts/poly-pomo @@ -23,7 +23,13 @@ restart_notify() { if [ -z "$1" ]; then run_notify 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 done elif [ "$1" = "toggle" ]; then