View Full Version : [SOLVED] Custom GDM Screen
October 16th, 2009, 05:00 PM
I am making a custom GDM screen and would like to have a quote that is randomly changed every login. Is this possible and if so how would I go about it? Thanks.
Edit: Also is there any way to detect the users monitor and supply a 4:3 or 16:9 background accordingly?
October 20th, 2009, 09:11 PM
OK, I have figured it out. Add this to your gdm.xml
<text></text> #make note of what line number this is
Then add this to a bash script somewhere pre GDM in the startup sequence
# is the line number you made note of in your gdm.xml file
num=$[ ( $RANDOM % x ) + 1 ] #x being the number of random quotes you want
if [[ $num == "1" ]]
sed '#s/.*/<text>quote</text>/' -i /path/to/gdm.xml
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.