The command gnome-screensaver -l
or with the option -a
locks the screen and turns it black. I actually just want to see the screensaver (a huge nice clock). Currently I have a python script that makes use of gnome-screensaver -l from here. But it shows the locked screen only for a second or less and then the screen turns black. I've already set the "dim screen when inactive" setting in the power settings to off. What can I do to display the clock (see image) after a few minutes?
Currently the screen turns black after 1 minute and when I move the mouse, I can see the clock. But I want it to be displayed all the time when I'm idle.
I don't think that this is possible when you use Gnome screensaver. Since Gnome 2 it has lost almost all its features and now it can only lock screen and blank it (Wikipedia even says that it should be called "screen blanker" rather than screensaver).
You can try XScreenSaver which is more powerful. To install it add the next packages:
xscreensaver
,xscreensaver-data
andxscreensaver-gl
. After the installation add it to your "Startup Applications". The command should bexscreensaver -nosplash
. Check this link for the details and the pictures.man xscreensaver
also contains valuable information.Use
xscreensaver-demo
to start configuration window for XScreenSaver.You have no need to uninstall
gnome-screensaver
, just disable it (you can revert all changes back later):sudo chmod -x /usr/bin/gnome-screensaver
. Or rename it tognome-screensaver.bak
. You can also renamegnome-screensaver-command
to.bak
and make screen lock shortcut work withxscreensaver
with this command:sudo ln -s /usr/bin/xscreensaver-command /usr/bin/gnome-screensaver-command
SourceThen you can use the standard GLText screensaver, which can display current date/time. Or you can browse https://www.gnome-look.org for some alternatives. Here is nice flip-clock screensaver. There are more screensavers here and here.