FAQ > OS > HOW TO > SCREEN > XSCREENSAVER


XSCREENSAVER
XScreenSaver
Created by Jamie Zawinski in 1992 (and still maintained by him), XScreenSaver is the de facto standard screensaver collection. Not only can it display over two hundred "hacks" (screensavers), but it can also blank and lock the screen. You'll need to deactivate Lubuntu screen locking first.

XScreensaver

XScreenSaver is already on your system. Just go to Menu --> Preferences --> Screensaver. Detailed info on updating/upgrading XScreenSaver is in the C4C FAQ here.

Atlantis

Autostart XScreensaver: go to Menu --> Preferences --> Default applications for LXSession, choose the Autostart panel, type in the text box for Manual autostarted applications: xscreensaver -no-splash then click the + Add button.

Autostart XScreensaver

Lock your screen by simply checking the box and setting the number of minutes you'd like XScreenSaver to wait before doing so.

lock screen

More info is on the website of XScreenSaver, including man pages.





DISABLE AUTO-LOGIN
Require a password to login

Require Password to Login

Go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T) and type (or copy and paste): sudo leafpad /etc/lightdm/lightdm.conf

A small file controls this in LightDM
[SeatDefaults]
autologin-guest=false
autologin-user=yourusername
autologin-user-timeout=0
autologin-session=lightdm-autologin

Comment-out [add "#" in front of] the user lines

[SeatDefaults]
autologin-guest=false
#autologin-user=yourusername
#autologin-user-timeout=0
autologin-session=lightdm-autologin

Save, "X" out and reboot

Require Password to Login


To auto-login again; follow the same directions above, but take away the "#" marks  in lightdm.conf and save.




LOCK SCREEN WITH A KEY COMBO
Use the "Super" and "L" keys to lock the screen.

Lock Screen

Open home/username/ and go to View --> Show Hidden

Show Hidden

Find and double-click .config
.config
Find and double-click openbox
openbox
The only file inside is lubuntu-rc.xml
lubuntu-rc.xml
Right-click the file and Open With Leafpad

Open With Leafpad
Copy the text below:

    <keybind key="W-L">
      <action name="Execute">       
        <command>xscreensaver-command -lock</command>     
      </action>   
    </keybind>

Press [Ctrl]+[F] and look for keyboard

find keyboard
Place the I-bar on the beginning of the line below <keyboard>

keyboard

paste, then hit [Enter]

paste xscreensaver-command -lock

Finally, go to Menu --> System Tools --> LXTerminal (or Ctrl+Alt+T) and type (or copy and paste): openbox --reconfigure

Now, your screen will lock whenever you press the "Super" and "L" keys.

"Super" key"L" key

ALSO SEE: Password


TOP