KDE via pkg: Complete FreeBSD desktop in no time

Table of Contents

Compiz instead of KWin

Compiz instead of KWin

by ross at 02:25:23 on October 25, 2016

Update: Compiz doesn't work well with KDE nowdays. It seems that Compiz is finally dead. I personally switched back to kwin.


Install Compiz:

# pkg install compiz-fusion

Packages in official repo are compiled using Clang, but Compiz plugins need gcc. To rebuild them, add to /etc/make/conf:

.if !empty(.CURDIR:M*/x11-wm/compiz-plugins*) && exists(/usr/local/bin/gcc46)


# pkg query %n-%v gcc

As you can see I have gcc 4.6.4 already installed. If the command above shows nothing install lang/gcc46.

Rebuild the plugins:

# cd /usr/ports/x11-wm/compiz-plugins-main
# make build deinstall reinstall clean
# cd /usr/ports/x11-wm/compiz-plugins-extra
# make build deinstall reinstall clean
# cd /usr/ports/x11-wm/compiz-plugins-unsupported
# make build deinstall reinstall clean

Lock them, so pkg will not reinstall them on the next update:

# pkg lock compiz-plugins-main
# pkg lock compiz-plugins-extra
# pkg lock compiz-plugins-unsupported

Update /etc/X11/xorg.conf, make sure you have this:

Section "Screen"
    Option      "AddARGBGLXVisuals" "True"
    Option      "RenderAccel" "True"
    Option      "AllowGLXWithComposite" "True"

Section "Extensions"
    Option "Composite" "Enable"

Relogin to KDE to restart X Window System.

Click Start and type in the search line: ccsm. It will find CompizConfig Setting manager — launch it. Enable General → KDE Compatibility option. Hit Close.

Now you are ready to replace KWin with Compiz. Click Start → Computer → System Settings, Open Default Application → Window Manager and set it to Compiz. Relogin to KDE.

You might want to read this page on tweaking Compiz, in general, run ccsm to tweak Compiz and emerald-theme-manager to set the theme.