Pretty frequently, but I hear this is uncommon.
Usually for anything text heavy I’ll use Dvorak. So chat or document writing.
For programming I’ll use qwerty.
On my Linux workstation I use qwerty since Linux keyboard layout isn’t window specific. But on my OSX and Windows I commonly switch between them.