- #CUSTOMIZE XSCREENSAVER LOCK SCREEN HOW TO#
- #CUSTOMIZE XSCREENSAVER LOCK SCREEN INSTALL#
- #CUSTOMIZE XSCREENSAVER LOCK SCREEN CODE#
If you do any mouse or keyboard activity It will prompt you for password. Now press “F12” key in you keyboard, xscreensaver application should lock your screen. Mohamed 3857 3796 0 18:19 pts/4 00:00:00 grep -color=auto xscreensaverįrom the above we can see the xscreensaver is running as intended. Open a command and use the below command to make suer the xscreensaver application is started by awesome. I our case it should start the screen saver and lock the screen.Īt the end of rc.lua file add the following lines to start the xscreensaver application, here -no-splash switch says not to show splash screen when starting xscreensaver.Ī_with_shell("xscreensaver -no-splash")
#CUSTOMIZE XSCREENSAVER LOCK SCREEN CODE#
In the above code “F12” is our short cut key, and “xscreensaver-command -lock” is the command to be executed when the key is pressed. The steps for other tools should be almost same with very few small modification.Īdd the following lines In your rc.lua file under “Standard program” section.Īwful.key(, "F12", function () ("xscreensaver-command -lock") end),
#CUSTOMIZE XSCREENSAVER LOCK SCREEN HOW TO#
In this article I will demonstrate how to use xscreensaver with awesome to lock your screen. Tells the running xscreensaver process to lock the screen immediately. If you are using a virtual root window manager, that can leave things in an inconsistent state, and you may need to restart your window manager to repair the damage. It can be achieved with any one of the following standalone apps and small modification to rc.lua. Warning: never use kill -9 with xscreensaver while the screensaver is active. Screensaver in awesome window manager ?īy default awesome window manager doesn’t provide any inbuilt support for locking the screen or screen saver. Screen lock in awesome window manager ?Ģ.
#CUSTOMIZE XSCREENSAVER LOCK SCREEN INSTALL#
In addition, to revert all settings execute following to remove xscreensaver and install gnome-screensaver.This post gives you answer for 2 questions.ġ. Command area input xscreensaver-command -lock Then under Custom Shortcuts, click + to add shortcut to launch xscreensaver to lock screen. You can disable it by Top Right corner menu -> System Settings -> Keyboard -> Shorcuts tab -> System GETTING STARTED¶ XScreenSaver is a daemon that runs in the background. XScreenSaver is also available on macOS, iOS and Android. It can also lock your screen, and provides configuration and control of display power management. The default lock screen key combination launches gnome-screensaver. sudo rm -f /usr/bin/xscreensaver Or you can add a file (as user) do not use sudo mkdir /.config/autostart file name: disablexscreensaver /bin/bash xscreensaver-command -exit Give this file chmod +x /. XScreenSaver waits until the user is idle, and then runs graphics demos chosen at random. Command area input xscreensaver -nosplash
![customize xscreensaver lock screen customize xscreensaver lock screen](https://i.stack.imgur.com/CN9DT.png)
Click Add to add xscreensaver as a auto-start app. Launch Startup Applications from the dash home. The dialog is still, for the moment, basic, but it should. It allows you to configure whether your session should be locked automatically after a timeout and the screen-blank and off times. The tool can be found in the the Settings Manager.
![customize xscreensaver lock screen customize xscreensaver lock screen](https://i.stack.imgur.com/zgRCh.png)
First time it prompts to stop gnome-screensaver for xscreensaver to work properly Settings are configurable via a settings dialog developed for Xubuntu 14.04, called Light Locker Settings. Sudo apt-get install xscreensaver xscreensaver-data-extra xscreensaver-gl-extra
![customize xscreensaver lock screen customize xscreensaver lock screen](https://i.stack.imgur.com/eUqX0.png)
Install xscreensaver and some additional packages with this command: Search “terminal” from the dash or Ctrl+Alt+T to launch a terminal window,Įxecute following commands to remove gnome-screensaver: sudo apt-get remove gnome-screensaver
![customize xscreensaver lock screen customize xscreensaver lock screen](https://i.stack.imgur.com/ZutwI.png)
You can enable screen savers by replacing default gnome-screensaver with xscreensaver. Ubuntu 12.04 doesn’t have any screen savers by default but only a black screen when your system is idled.