Hi guys...

I use this for my start-beryl.sh
Code:
#!/bin/bash

DRI=""
DRI=$(glxinfo |grep "direct rendering" |grep -o -i "yes" )

if [ -z $DRI ]; then
  echo "No Direct Render support found..." >~/.beryl/beryl-xsession.log
else
if [ -f ~/noberyl ]; then
  exit 0
else
echo "Starting Beryl..." >~/.beryl/beryl-xsession.log 
/usr/bin/beryl-manager >>~/.beryl/beryl-xsession.log &
fi
fi
this way beryl-manager is loaded by default..... UNLESS Direct Rendering is not available or ~/.noberyl is present.

To disable the auto-loading of beryl you would do something like echo "" >/home/onemyndseye/.noberyl (simply create a file named ".noberyl" in the home directory of the user that you DONT want autoloading beryl.

Also useful for when Beryl freaks out... sometimes I've noticed if it crashes while I'm using it.. SOMETIMES (and not often) it tries to default back to the beryl desktop (instead of the fallback desktop).. where it could crash again (and probably will if it crashed well enough to get you to this point once) right off the bat...sending you back to the Login manager..... so when this happens I just quickley create the file ~/.noberyl and restart KDE/KDM... beryl is gone until I remove the file.

Also, for sysadmins ...this way start-berly.sh can be included in the /etc/skel (default files for all users).... even if you dont want ALL users using it... to disable auto-loading just add the ~/.noberyl file as root. (this ofcaorse will only stop it from being auto loaded.....not stop it from being run)

This came about because I load beryl-manager at startup.... but beryl is configured to use the KDE desktop by default .. Because for the most part I like beryl, but I like to be able to quickly turn it off/on (to show it off mostly...lol).... ... anyways - one day after compiling a new kernel that in-turn broke my direct rendering support I tried to login to KDE only to see beryl crash from the start (even though beryl desktop wasnt the default) and return me to KDM login...the above script is the result.