Last active
September 8, 2022 16:12
-
-
Save hugomaiavieira/c4208dec84d0c7115712 to your computer and use it in GitHub Desktop.
Script to lock and turn off the screen on linux mint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# | |
# How to use it | |
# | |
# $ chmod +x lock-screen | |
# | |
# $ ./lock-screen.sh | |
# | |
# You can create a custom keyborad shortcut (like Super+l) that call this script | |
# | |
sleep 0.5 && xset dpms force off && gnome-screensaver-command --lock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment