How to change Window Manager (GUI) for win-kex

I have been trying to use dwm tile Window Manager from Suckless with the Kali installation on a Windows 10 machine. But I kept running into issues. I tried using .xinitrc and other ways, but nothing worked until I discovered the file xstartup /usr/lib/win-kex/xstartup.

From there, you can change startxfce4 to dwm.

Then you can close the TigerVNC. And in the Kali terminal, use the commands to restart with your new Window Manager:

Commands for restarting kex

If you are looking for the source code for Kex:



Just a Dev (

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store