Last active
March 17, 2022 13:05
-
-
Save nacnudus/43f0c787b5597ab28612b4b4bb121f69 to your computer and use it in GitHub Desktop.
Simple reminder to log my current activity.
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 | |
ENTRY=$(/usr/bin/yad --title "Activity log" --text="What are you doing?" --entry --auto-kill) | |
DATETIME=$(date --iso-8601=seconds) | |
[[ ! -z "$ENTRY" ]] && echo -e "${DATETIME}\t${ENTRY}">> /home/nacnudus/gds/log.log | |
# Schedule in crontab Every six minutes between 9am and 6pm on weekdays | |
# */6 9-18 * * 1-5 env DISPLAY=:0 && /usr/bin/bash /path/to/this_file.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment