Ubuntu – How to change cursor in Unity


As we have to have active compiz with Unity, I can't change the color, size, etc. of the cursor.

Is there any way for do it?

Best Answer

This is a known bug in compiz see https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/141500.

I found a workaround that works great for me on the bug page.

  1. Create a file
  2. Mark it as executable (Right Click > Properties > Permissions > Allow executing file as program)
  3. Open in gedit and paste the following

    mkdir -p $HOME/.icons/default
    CURSOR_THEME=$(gconftool -g /desktop/gnome/peripherals/mouse/cursor_theme)
    echo "[Icon Theme]
    Inherits = $CURSOR_THEME" > $HOME/.icons/default/index.theme
    echo "Compiz will be restarted to enable this. Please stand by."
    compiz --replace &

Then Just run that file every time you change your mouse theme.

Related Question