Yes it starts with a mental change. You stop caring because you know you are leaving. This frees you to push back on things or not worry about tech debt. Missing deadlines become fine and job searching at work your focus. Use your time wisely.