diff options
Diffstat (limited to 'bin/menuscripts')
| -rwxr-xr-x | bin/menuscripts/pomo | 8 | 
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/menuscripts/pomo b/bin/menuscripts/pomo index ed64ce7..07db166 100755 --- a/bin/menuscripts/pomo +++ b/bin/menuscripts/pomo @@ -16,7 +16,7 @@ player_command() {  	printf >&2 ' > '  	[ -r "$ringSound" ] || PLAYER=""  	case "$PLAYER" in -	mpv) mpv --loop --msg-level=all=no "$ringSound" ;; +	mpv) mpv --volume=100 --loop --msg-level=all=no --resume-playback=no "$ringSound" 2>/dev/null;;  	"") head -n 1 ;;  	*) $PLAYER "$ringSound" ;;  	esac @@ -46,9 +46,11 @@ ring) ;;  esac  ringSound="${XDG_DATA_HOME:-$HOME/.local/share}"/pomo/ring.aac -[ -r "$ringSound" ] && printf >&2 'ring: %s\n' "$ringSound" +# For debugging purposes  if [ "$1" = "ring" ]; then +	>&2 printf 'PLAYER: %s\n' "$PLAYER " +	>&2 printf 'ringSound: %s\n' "$ringSound"  	player_command  	exit  fi @@ -61,7 +63,7 @@ done  while true; do  	notif "*START"  	printf >&2 '%s S %s\n' "$(date '+%R')" "$round" -	sleep ${SLEEP_TIME}m +	sleep "${SLEEP_TIME}m"  	if [ "$round" -eq 3 ]; then  		ring_ring 20 "*GIGA BREAK TIME"  		round=0  | 
