A similar Mac version of this is HeyFocus - https://heyfocus.com
It is paid but it really gets the job done. I don't really use it these days (kinda built up the habit). I remember setting the quotes to just one phrase -- "Get the F*K back to Work" or something like that or was it like "You ought to be Working" (as seen in the ceiling of Kevin Bacon in Hollow Man.