I installed nodm, so that Debian starts Xorg and a window manager immediately after booting, without requesting any password and without a login.
How can I similarly setup Debian to shutdown the system automatically, without password prompt, whenever the window manager and Xorg are quit?
xorgserver/daemon and runshutdownwhen it quits. As to how you go about this, I don't know. Perhaps something in an X config file could issue that command on termination. Perhaps even in~/.bash_logout(assuming the default user fornodmis logged out whenxorgquits).