Click to See Complete Forum and Search --> : how to fade like logout in kde?


slipperyfish
02-17-2004, 08:30 PM
Hi

I've written a simple shell script to replace the logout dialogue to allow greater control of the process (see below for script). My problem is that when my dialogue box pops up I would like the rest of the screen to be faded out like it is with the standard logout or when you suspend session to disk. So far I can't find what it is that makes that happen.

Any ideas?

Thanks

shell script:
#!/bin/sh
kdialog --yesno "Do you really want to turn of the computer?"
#if yes is entered then shutdown
if [ $? = 0 ]; then
dcop ksmserver default logout 1 2 3
else
#if no is entered cancel
exit
fi

mdwatts
02-18-2004, 01:10 PM
I would say it's some sort of programming code and not a script that does the fading.