Created
May 20, 2022 10:14
-
-
Save lesp/44a964f314548009c3912a18c69b5d21 to your computer and use it in GitHub Desktop.
Simon says...take a screenshot every minute and use the timestamp as the filename
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 | |
current_time=$(date "+%Y.%m.%d-%H.%M.%S") | |
echo "Current Time : $current_time" | |
scrot -d 60 "${current_time}.png" |
#!/bin/bash
while true
do
current_time=$(date "+%Y.%m.%d-%H.%M.%S")
echo "Current Time : $current_time"
scrot -d 60 "${current_time}.png"
done
That will make it loop FOREVER and EVER!
Press CTRL + C to stop
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install scrot
sudo apt install scrot
Save the file as capture.sh.
Run the code using
bash capture.sh