-
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

(New) AMD Ryzen 7 5700X 8 Core 16 Thread AM4 Unlocked 3.4 GHz CPU OEM Tray
$174.99

SGIN 17.3" Laptop Intel Quad-Core Up to 2.4 GHZ 8GB RAM 256GB SSD HD
$229.99

Lenovo IdeaPad S340-15IWL Laptop 15.6" Intel Core i3-8145U 8GB RAM 256GB SSD
$126.65

acer swift air 14
$600.00

Intel Xeon E5 - 2667V2 / SR19W 3.30GHz 25MB 8-Core CPU Socket LGA2011
$30.00

AMD FX 8350 8-CORE 4.00GHz CPU FD8350FRW8KHK SOCKET AM3+ *QTY
$39.99

AMD Ryzen 7 7800X3D 4.20GHz Quad Core 100-000000510 8 Thread AM4
$279.99

AMD Ryzen 7 5700G 8-Core 16-Thread 4.6GHz Max Boost, 3.8 GHz Base
$170.00

Dell T7810 Workstation 8-Core 2.40GHz E5-2630 v3 No RAM GPU HDD OS
$259.98

Dell OptiPlex 5070 SFF i7-9700 (8-Core) 3.0GHz 16GB 256 SSD Windows 11
$250.00