kc9udx Don't have KDE installed, but, this works with XDM:
/etc/X11/xdm/Xsetup_0
#!/bin/sh
xsetroot -solid Black
xset s expose s noblank s 180 15
# /usr/pkg/bin/xidle -program '/usr/pkg/bin/xlock -inwindow -nolock -mode bounce -geometry 1024x768' -timeout 180 &
xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail
/etc/X11/xdm/GiveConsole
#!/bin/sh
# Assign ownership of the console to the invoking user
#
# By convention, both xconsole and xterm -C check that the
# console is owned by the invoking user and is readable before attaching
# the console output. This way a random user can invoke xterm -C without
# causing serious grief.
#
chown $USER /dev/console
pkill xidle xlock || true
xset s default
If you want eye-candy, then, install xidle
and xlockmore-lite
; uncomment the xidle
line, and set the -geometry
to cover the whole screen.
But, this style isn't quite satisfactory: one has to click the mouse to make the saver disappear; and key-presses go to xdm
rather than xlock
(because xdm
"grabs" the X server). If you want to do this properly, you'll have to hack the XDM greeter source...
GDM seems able to run a screensaver after a timeout. More info. here.