In case anyone's interested in using scrcpy to play with the desktop mode over usb debugging, here are the desktop files I made to launch it easily. Like I said, the 4k one over usb debugging actually works well, it looks good, but it is a bit glitchy sometimes
~ $ cat .local/share/applications/pixel-1080p.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Pixel Desktop (1080p)
Comment=Launch Pixel Desktop Mode at 1080p Resolution
Exec=scrcpy --new-display=1920x1080/240 --video-codec=h265 --video-bit-rate=30M --max-fps=60 --keyboard=uhid --mouse=uhid
Icon=phone
Terminal=false
Categories=Utility;RemoteAccess;
~ $ cat .local/share/applications/pixel-4k.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Pixel Desktop (4K)
Comment=Launch Pixel Desktop Mode at 4K Resolution
Exec=scrcpy --new-display=3840x2160/240 --video-codec=h265 --video-bit-rate=30M --max-fps=60 --keyboard=uhid --mouse=uhid
Icon=phone
Terminal=false
Categories=Utility;RemoteAccess;
I'm also interested in knowing how much attack surface is opened up having developer options enabled, especially if the only thing I change in them is enabling desktop mode