Skip to content

Latest commit

 

History

History
106 lines (62 loc) · 2.05 KB

README.md

File metadata and controls

106 lines (62 loc) · 2.05 KB

English简体中文

daily-wallpaper

Download Coverage Npm Node License

A nodejs cli tool for fetching Bing wallpapers regularly

Installation

npm install -g dwp

or

yarn global add dwp

Usage

Start a cron job.

dwp start

Stop all cron jobs.

dwp stop

Show cron jobs.

dwp list

Show logs.

dwp log

Options

  • -v, --version

    Show current version.

  • -h, --help

    Show help info.

Options for start command

  • -W, --width <number>

    Set wallpaper's width. Not required. width and height would be automatically acquired with nc-screen.

  • -H, --height <number>

    Set wallpaper's height. Not required.

  • -i, --interval <string>

    Interval between two fetching actions, with format [digit][unit]. For example, 1h means fetching wallpaper per hour. Unit supports s(second), m(minute), h(hour), d(day). Default 1d. Not suggest to set a very small value, otherwise leading problem.

  • -m, --max <number>

    Keep latest max wallpapers in the directory. Default 3.

  • -s, --startup

    Auto start after your computer launched. Plan to support.

  • --no-startup Not auto start after your computer launched. Plan to support.

Options for log command

  • -n, --num <number>

    How many rows of log will be shown. Default 500.

  • -e, --error

    Show logs with a log level upper than error.

Issues and Contributing

Please contact with me if you have any question. Welcome to confirm an issue or contribute.

Author

Thomas Leung

License

MIT