All pastes #136846 Raw Edit

Pedrolito

public text v1 · immutable
#136846 ·published 2006-08-17 23:20 UTC
rendered paste body
#!/bin/bash
#
# Start compiz with gnome-session if xgl is started
if [ "`cat /etc/sysconfig/xgl/status`" == "enable" ]; then
        DISPLAY=:0 compiz --replace gconf cube rotate switcher scale fade minimize zoom place move &
        DISPLAY=:0 gnome-window-decorator &
else
        echo "Xgl status is disable, for example enable it with gnome-xgl-switch -e --auto"
fi
# Reload keyboard settings if Xgl is started
kb=`gconftool-2 --get /desktop/gnome/peripherals/keyboard/kbd/model`
gconftool-2 --set --type string /desktop/gnome/peripherals/keyboard/kbd/model none
gconftool-2 --set --type string /desktop/gnome/peripherals/keyboard/kbd/model $kb