Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

how to take a screenshot of the login or lock screen in ubuntu linux

$ gnome-screenshot -d 10

# Even more .. the command will lock the screen , 
# copy the screenshot to clipboard and unlock the screen again. All by it self.
$ gnome-screensaver-command -l && sleep 2 && gnome-screenshot -c && loginctl unlock-session
Source by askubuntu.com #
 
PREVIOUS NEXT
Tagged: #screenshot #login #lock #screen #ubuntu #linux
ADD COMMENT
Topic
Name
2+8 =