Ubuntu – Compositing managers

12.10compositing

How can I determine which compositor is currently being used when multiple desktops have been installed such as LXDE and XFCE. Compiz is also installed.

Is there a code that will show which installed compositing manager being used?

Best Answer

There is no direct command to get your current compositing manager. To do that, we need to make a list of them and check in the current processes. I made a script for this. Here it goes:

#!/bin/sh

COMPOSITORS=('awesome' 'beryl' 'blackbox' 'compiz' 'dwm' 'enlightenment' 'fluxbox' 'fvwm' 'i3' 'icewm' 'kwin' 'metacity' 'musca' 'openbox' 'pekwm' 'ratpoison' 'scrotwm' 'wmaker' 'wmfs' 'wmii' 'xfwm4' 'xmonad')

for i in `ps -u $USER -o comm`; do
    for c in ${COMPOSITORS[@]}; do
        if [ "$i" == "$c" ]; then
            echo "Your compositor is $i"
        fi
    done
done

Open your editor, paste the code above and save it with the name check-compositor.sh. Then open the terminal and execute $ sh path/to/your/file/check-compositor.sh That should show your current compositor manager. You can add more compositing managers to the list if you wish, but I think that's pretty much all of them.

Related Question