Tex. Code Crim. Proc. art. 17.151
Sec. 1. A defendant who is detained in jail pending trial of an accusation against him must be released either on personal bond or by reducing the amount of bail required, if the state is not ready for trial of the criminal action for which he is being detained within:
(4) five days from the commencement of his detention if he is accused of a misdemeanor punishable by a fine only.
Sec. 2. The provisions of this article do not apply to a defendant who is:
(3) incompetent to stand trial, during the period of his incompetence.
Sec. 3. If a person released under this article is arrested and detained for a violation of the conditions of his release, the time for release under Section 1 of this article begins to run on the date of the arrest for violation of conditions of the release.
Added by Acts 1977, 65th Leg., p. 1972, ch. 787, Sec. 2, eff. July 1, 1978.