~mil/sxmo-utils

7838297f074f9c618f1c63f7122b97f16a5179aa — Peter John Hartman a day ago 8b52c6e master
ring mpv: pipe to dev null too

Avoids spamming up logfile
1 files changed, 2 insertions(+), 2 deletions(-)

M configs/default_hooks/sxmo_hook_ring.sh
M configs/default_hooks/sxmo_hook_ring.sh => configs/default_hooks/sxmo_hook_ring.sh +2 -2
@@ 38,12 38,12 @@ case "$(cat "$XDG_CONFIG_HOME"/sxmo/.ringmode)" in
		;;
	Ring)
		timeout "$SXMO_RINGTIME" mpv --no-resume-playback --quiet --no-video \
			--loop="$SXMO_RINGNUMBER" "$SXMO_RINGTONE" &
			--loop="$SXMO_RINGNUMBER" "$SXMO_RINGTONE" >/dev/null &
		echo "$!" > "$XDG_RUNTIME_DIR/sxmo.ring.pid"
	;;
	*) #Default ring and vibrate
		timeout "$SXMO_RINGTIME" mpv --no-resume-playback --quiet --no-video \
			--loop="$SXMO_RINGNUMBER" "$SXMO_RINGTONE" &
			--loop="$SXMO_RINGNUMBER" "$SXMO_RINGTONE" >/dev/null &
		MPVID=$!
		echo "$MPVID" > "$XDG_RUNTIME_DIR/sxmo.ring.pid"
		# Vibrate while mpv is running