![]() On older versions was gnome-screensaver-command -l. You can set it to anything you want the default is 600 (10').įor Ubuntu 18.04+, use xdg-screensaver lock This sets the screensaver idle activation time to 2 hours (or 7200 seconds). Open a terminal, and type/paste: gsettings set idle-delay 7200 # Blank Screen Delay To prevent reactivation of the screensaver (idle timeout) Click Apply, then click on its right where it says "Disabled" to get "New Accelerator", and press Ctrl+ Alt+ L. Move your mouse in between two objects on a screenshot and press an arrow key left or right. Now go to Custom Shortcuts on the left, and add a shortcut, naming it whatever you want to with the command as /home/username/locknoblank.sh. So, if one keyboard shortcut doesn’t work, you can try another one. Alternately, you can use the keyboard shortcut Windows key + I to open. Click on "System" on the left sidebar, then click on the right of "Lock Screen" where it says "Ctrl+Alt+L" it will now say "New Accelerator.". In Windows 11/10, there are several keyboard shortcuts for capturing screenshots. To enable and use the screen savers feature on Windows 11, do the following: Click the Start button and select Settings. Go to System and remove Ctrl+ Alt+ L as the lock-screen shortcut so we can re-use it for our custom command. ![]() ![]() Make the file executable with chmod +x ~/locknoblank.sh Find out where to locate the screensaver file, how to set up the keyboard shortcut, and other ways to start the screensaver. This simply locks the screen normally, but one second later, sends a dummy Ctrl keystroke to "unblank" the screen. Learn how to create a shortcut to a screensaver on your Windows desktop or keyboard, and how to use it to launch the screensaver on demand. Paste the following to a file in your home directory, such as locknoblank.sh: #!/usr/bin/env bash Install xdotool with sudo apt-get install xdotool We'll do this with xdotool, a small command-line utility which allows automation of keyboard and mouse clicks/movements. The trick then is to "fake" a keystroke immediately after the screen is locked to get rid of the blank-screen and leave the lock-screen on. Unfortunately, the lock-screen utility xdg-screensaver lock (formerly gnome-screensaver-command), which the Ctrl+ Alt+ L shortcut uses, will also activate the blank-screen "screensaver" whenever it is told to lock the screen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |