How can I determine which window managers are installed from the command line? I use Ubuntu.
I know that:
-
One can determine which window manager is running with:
sudo apt-get install wmctrl wmctrl -m
-
One can view the default display manager on Debian/Ubuntu with:
/etc/X11/default-display-manager
Best Answer
There's no way to find all window managers programmatically because any program could potentially act as a window manager and it's impossible to write a program that knows what an arbitrary program does. However, if you limit the search to window managers provided by a Debian package, there's an easy way. All window managers in Debian provide the
x-window-manager
alternative.