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