Using Another DE/WM in sys-gui

Update:

What you said fixed the problem so I’m marking it solved, but, like a wolf spider, when it was crushed it exploded into a bunch of tiny babies. I’m currently trying to sort these out, but it mainly seems like some GUI packages from dom0 need to be ported to sys-gui.
(Like /usr/share/awesome/lib/qubes.lua, without which the Qubes security colors and VM names won’t be in the borders on the WM.) :

For some reason (I noticed this problem with sys-gui when I tested it in its original configuration), it is extremely slow to get the GUI running, even when the qube is on. There is a blank screen for a few seconds, long enough that I think there may be some problem. I’ll have to diagnose.

The systray and Qubes widgets are nowhere to be found.

No AppVM applications will launch. One program I tried to launch from the terminal (rofi, which is coincidentally my app launcher) failed to launch and said something about locale not being set. Again, I’ll need to diagnose this, but it probably has something to do with GTK/themes.

TL;DR: This will need some work before it is usable. I’ll be working on this, but for anyone else willing to test here are

Instructions to get where I am:
  1. Use Salt to configure sys-gui (top.enable qvm.sys-gui). Confirm this works. This is mainly to make sure there are no preexisting problems so things don’t get confused, but it also sets up the GUIVM policy. You’ll have to do this manually if you skip this step, but the policiy and location can be found in /srv/formulas/base/virtual-machines-formula/qvm/sys-gui-template.sls.

  2. Create debian-12-minimal-sys-gui by cloning debian-12-minimal. Get a root shell and execute these commands (include any other packages you want; I did rofi, sxhkd, emacs, etc.):
    gui-templ# apt install awesome lightdm qubes-desktop-linux-manager qubes-vm-guivm qubes-manager xdg-user-dirs-gtk
    gui-templ# systemctl enable lightdm

  3. Copy Awesome-related files:
    dom0$ qvm-copy-to-vm sys-gui /home/user/.config/awesome
    dom0$ qvm-copy-to-vm debian-12-minimal-sys-gui /usr/share/awesome/lib/qubes.lua

  4. Move copied files in debian-12-minimal-sys-gui to correct directory:
    gui-templ# mv /home/user/QubesIncoming/dom0/qubes.lua /usr/share/awesome/lib/
    Then shutdown debian-12-minimal-sys-gui.

  5. Start sys-gui and launch a Xen console. Login to root (type ‘root’ and press return). Execute these commands:
    sys-gui# mv /home/user/QubesIncoming/dom0/awesome /home/user/.config/
    sys-gui# echo "exec awesome" | tee /home/user/.xinitrc 1> /dev/null
    sys-gui# set XSESSION=awesome

  6. Restart QubesOS, and login to GUIVM.

This may take me a few days to look into with my workload, so if you’re here looking for answers please be patient. This is my main machine, so I have to work slowly when I can afford a few hours in case of breakage.