Comment 1 for bug 1087539

Revision history for this message
BryanFRitt (bryanfritt) wrote :

A script you can modify and put in your KDE autostart ~/.kde/Autostart/ to prompt you to enter the number of rows when KDE starts.

!# /bin/bash
# Change '/usr/local/bin/start-compiz.sh' for how Compiz is started for you.
# If Compiz is running then prompt for proper pager rowcount, otherwise do nothing.
if ps aux | grep -v grep | grep -m 1 -- "/usr/local/bin/start-compiz.sh" > /dev/null;
then
    # this is to fix some of the odd bugs that Compiz has in KDE
    # first part allows the user to correct the number of rows
    # the second part fixes the number of KDE desktops to one (it's bugy/slow with more than one and Compiz)
    kcmshell4 desktop && wmctrl -n 1
fi