#! /Bin/sh # program description # scripts for implementing the tomato working method # tomato working method rules # Rule 1: A tomato lasts for 30 minutes, including 25 minutes of work and 5 minutes of rest. # Rule 2: the time of a tomato is inseparable. # In the tomato working method, the minimum unit of time is a tomato time. # One tomato time cannot be divided into: there is no such thing as half a tomato time or a quarter of an hour. # Rule 3: Stop your job after every four tomato times # Take a long rest for about 15 to 30 minutes # Rule 4: complete a task, remove one # usage explanation: the first tomato is 30 minutes. After the end, choose whether to continue # Enter y/y to continue the next tomato, and enter other commands to exit path = $ path :~ /Binexport pathyn = "Y" while ["$ YN" = "Y"-o "$ YN" = "Y"] Do echo "env display =: 0 Feh ~ /Pictures/eg_bulboff.gif "| at now + 25 minutes echo" env display =: 0 Feh ~ /Pictures/eg_bulbon.gif "| at now + 30 minutes sleep 30 m read-P" Please input (y/y) To move on: "yndoneatq | cut-S-F 1 | xargs atrmecho" Have a rest"
# In the following two lines of code, you must select a local image to display the image echo "env display =: 0 Feh ~ /Pictures/eg_bulboff.gif "| at now + 25 minutesecho" env display =: 0 Feh ~ /Pictures/eg_bulbon.gif "| at now + 30 minutes
How to Implement tomato work using shell