Created
April 25, 2022 07:29
-
-
Save thepycoder/6f0fe73bc46ab719be88f20e4f3dcc79 to your computer and use it in GitHub Desktop.
i3lock script
This file contains hidden or 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
# All these commands will be launched from a remote SSH session | |
# so we need to add the DISPLAY=:0 environment variable to tell the command | |
# to use the main screen, otherwise it will whine that it found no display | |
$ export DISPLAY=:0 | |
# Launch i3lock with a custom screensaver | |
$ i3lock -i /path/to/custom/screensaver.png | |
# Spam backspace | |
$ xdotool key BackSpace | |
# Fill in password | |
$ xdotool type mypassword | |
$ xdotool key Return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment