Install Scrot
Scrot is available on Ubuntu's default repository, so to install it simply execute the following command:
The Script
- sudo apt-get install scrot
The shell script just contains four lines but it will do a cool task. It will automatically take 25 screenshots with 3 second interval. The images will be saved in PNG format and put in Pictures folder in Home directory. There are five variables which can be changed to suit your need:
- {1..25}. It will take 25 screenshots, change the number "25" as you wish.
- scrot -d 3. It will take a screenshot on 3 seconds interval. Simply change "3" to any number which suit your need.
- %Y-%m-%d-%H:%M:%S.png. The pictures taken will saved in PNG format. You can change this to JPG if you want to.
- ~/Pictures/ The files will be automatically saved in Pictures folder inside Home directory.
Now, you can take screenshots automatically at regular interval by running "scrot.sh" we've just created.
- chmod +x scrot.sh
via: MTE
0 comments:
Post a Comment