Take the system source code that is activated from within the actual Desktop window manager functionality.
You can find it here:
https://github.com/linuxmint/mintdeskto ... r-launcher
-this already considers what previously happened in that GUI selection window, so we can simulate that instead. Download that script file. you could put it in your
~/bin
directory(probably have to create that, and this way it is tucked out of the way and also you don't have to use a fully qualified path in your call scripting). Name it for example 'change-wm'. mark it:
chmod u+x change-wm
(so it can become executable)
Check near line 28: (
https://github.com/linuxmint/mintdeskto ... uncher#L28 )
Code: Select all
if current_desktop == "MATE":
wm = settings.get_string("mate-window-manager")
else:
wm = settings.get_string("xfce-window-manager")
and make it look like this instead:
Code: Select all
from sys import argv
script_name, param_2 = argv
if current_desktop == "MATE":
#wm = settings.get_string("mate-window-manager")
wm = param_2
else:
wm = settings.get_string("xfce-window-manager")
Now, you can call that 'change-wm' script with the appropriate parameter (you will see the "parameters" listed in the rest of the file within the 'if' - 'elif' statements) like this:
or:
So, now, using that method you can change back and forth in any way and it should firstly unload whatever WM combo is loaded, then load the newly requested option, so start as default, call for marco and/or compton or composite, do Skype, then call back for compiz so you will be back at default. However this is not a good way to change to one or the other and leave it, so going to another WM
then back is how this works, -since it doesn't adjust the system settings as far as what the default selection is. Anyway, just something quick and dirty that would also work in this situation.