Skip to content

A simple program that executes shell commands based on the time of day

License

Notifications You must be signed in to change notification settings

MaxVerevkin/day-night

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

day-night

A simple program that executes shell commands based on the time of day

Options

❯ day-night --help
day-night 0.1.0
Max Verevkin <me@maxverevkin.tk>
A simple program that executes shell commands based on the time of day

USAGE:
    day-night [FLAGS] [OPTIONS] --lat <latitude> --lon <longitude>

FLAGS:
        --always-run    If set, a command will be run on each update. Otherwise, a command will be run only when
                        changing states (from night to day and vice versa)
    -h, --help          Prints help information
    -V, --version       Prints version information

OPTIONS:
        --day <day>              A shell command to run in day time
        --interval <interval>    The interval between updates in seconds [default: 600]
        --lat <latitude>         Your geographical latitude
        --lon <longitude>        Your geographical longitude
        --night <night>          A shell command to run in night time

About

A simple program that executes shell commands based on the time of day

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages