All pastes #184689 Raw Edit

beryl+ati+xgl

public text v1 · immutable
#184689 ·published 2006-09-28 04:04 UTC
rendered paste body
File: /usr/share/xsessions/xgl.desktop

[Desktop Entry]
Encoding=UTF-8
Name=Xgl
Comment=Start an Xgl Session
Exec=/usr/bin/startxgl.sh
Icon=
Type=Application


File: /usr/bin/startxgl.sh
#!/bin/sh
fontpath=`grep -i fontpath /etc/X11/xorg.conf | egrep -v "[:space:]*#" | sed "s/.\+\"\(.\+\)\"/\1,/g" | xargs echo | sed "s/\ //g" | sed "s/,\$//"`
Xgl :1 -fullscreen -br -ac -accel glx:pbuffer -accel xv:pbuffer -fp $fontpath &
#Xgl :1 -ac -accel glx:pbuffer -accel xv:pbuffer &
DISPLAY=:1 compiz --replace gconf &
DISPLAY=:1 cgwd --replace && > ~/cgwd-window.log 2>&1 &
DISPLAY=:1 startkde

File: /.kde/Autostart/startxgl

#!/bin/bash

checkps=`ps aux | grep Xgl | grep -v grep`

echo $checkps

if [ "$checkps" == "" ]; then
        #no need for compiz
        exit 0
else
        sleep 5
        /usr/bin/compiz-start
fi