-
Senior Member
registered user
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.
Similar Threads
-
By zaiko2000 in forum General Support
Replies: 1
Last Post: 07-21-2008, 07:18 PM
-
By Jamsh in forum Hardware & Booting
Replies: 0
Last Post: 02-09-2007, 04:42 PM
-
By onemyndseye in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 01-05-2007, 10:23 AM
-
By RandomGoon in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 10-25-2006, 04:27 PM
-
By zenarchist in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 02-05-2006, 04:16 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Kingston 32GB 64GB 128GB 256GB USB 3.0 Flash Drive Thumb Memory Stick Pen lot
$285.90

Microsoft Office 2021 Pro Plus USB for 1PC Windows 10 & 11
$62.55

Set of 2 HMAA4GR7CJR8N-XN HYNIX 32GB (1X32GB) 2Rx8 PC4-3200AA MEMORY
$600.00

TF/SD Card Adapter Camera Reader Android Type-c For iPhone17 Pro Max Plusm lot
$573.98

SAMSUNG 128GB (4x32GB) M393A4K40BB1-CRC4Q RAM DDR4-2400T RDIMM ECC Memory
$666.00

USB 3.0 Flash Drive 32GB 64GB 128GB Memory Stick Thumb Stick Lot Pack
$826.09

Samsung 32GB DDR4-2666V-2Rx4-RB2-12 RAM M393A4K40CB2-CTD6Q
$169.00

HYNIX 64GB (1X64GB) 2RX4 PC4-3200AA DDR4 SERVER MEMORY
$600.00

SK hynix 64GB (4x16GB) DDR4 PC4-2666V DIMM RAM HMA82GR7CJR8N-VK
$399.00

MICRON MTA36ASF4G72PZ-2G6D1 32GB PC4-21300R DDR4-2666V RDIMM 2RX4 MEMORY DIMM
$139.99