Now it starts to both desktops, but it still starts to compiz-programs.
There is option in compiz-settings-manager that you can put settings for screen 0 or screen 1, but it does not work. Now you start compiz-settings-manage on monitor you want to change settings.
Remember there is no window borders, move, or change size of window activated, you have to do it manually first. So it might seem that there is no compiz running even when there is.
I did this: (going to copy paste some from that link)
Create the compiz_start.sh file in /usr/local/bin directory:
Code should be (sleep 5 means it will pause for 5 seconds before executing that command):
gksudo gedit /usr/local/bin/compiz_start.sh
Save and close file.
# Start compiz-fusion with compiz --replace
DISPLAY=:0.0 compiz --replace -c emerald &
DISPLAY=:0.1 compiz --replace -c emerald &
Change the file permission:
sudo chmod a+x /usr/local/bin/compiz_start.sh
And add the compiz_start.sh script to startup: Navigate to System->Preferences->Session,
Create new startup, and point the command to /usr/local/bin/compiz_start.sh
Log out and back in, that should start both. IF there is some error try put "sleep 1" in between commands, so they will not be executed at the same time.
I bet there MUST be some setting in compiz that will autostart it to all the monitors, there is no need to start two instances. At the mean time I do not know how. I will try to update here if I found out.
Also, when I put on two instances of compiz I randomly get empty menus like these --> http://kuvaton.com/k/YUen.jpg
Sorry for the "screenshot" but Xubuntu will not let me screenshot while menu is open.
If I click again, it will be visible.
I have absolutely NO idea what does "
"-c emerald &" mean or do