summaryrefslogtreecommitdiff
path: root/x11-wm/compiz/files/compiz-start
diff options
context:
space:
mode:
Diffstat (limited to 'x11-wm/compiz/files/compiz-start')
-rw-r--r--x11-wm/compiz/files/compiz-start41
1 files changed, 0 insertions, 41 deletions
diff --git a/x11-wm/compiz/files/compiz-start b/x11-wm/compiz/files/compiz-start
deleted file mode 100644
index 161068b..0000000
--- a/x11-wm/compiz/files/compiz-start
+++ /dev/null
@@ -1,41 +0,0 @@
-# compiz-start script
-#
-# hacky autodetection of neccessary options for XGL/AIGLX/NVIDIA
-#
-# Hanno Boeck, http://www.hboeck.de/
-#
-# Licensed under the same conditions as compiz itself (MIT or GPL)
-
-if [ ! -x /usr/bin/glxinfo ]; then
- echo "glxinfo not found, please install mesa-progs."
- exit -1
-fi
-
-GLX_WITH_DIRECT=`glxinfo|grep -c GLX_EXT_texture_from_pixmap`
-GLX_WITH_INDIRECT=`LIBGL_ALWAYS_INDIRECT=1 glxinfo|grep -c GLX_EXT_texture_from_pixmap`
-GLX_RENDER=`glxinfo|grep -c "OpenGL renderer string: Mesa GLX Indirect"`
-
-
-COMPIZ_OPTIONS="--replace"
-
-if [ $GLX_WITH_DIRECT -eq 3 ]; then
- if [ $GLX_RENDER -eq 0 ]; then
- echo NVIDA detected
- export __GL_YIELD="NOTHING"
- else
- echo XGL detected
- fi
-elif [ $GLX_WITH_INDIRECT -eq 3 ]; then
- echo AIGLX detected
- export LIBGL_ALWAYS_INDIRECT=1
-fi
-
-if [ ! -z $KDE_FULL_SESSION ] && [ -x /usr/bin/kde-window-decorator ]; then
- echo Using KDE decorator
- kde-window-decorator --replace &
-else
- echo Using GTK decorator
- gtk-window-decorator --replace &
-fi
-
-compiz $COMPIZ_OPTIONS gconf move resize minimize place decoration wobbly fade cube rotate scale switcher zoom dbus