A nodejs cli tool for fetching Bing wallpapers regularly
npm install -g dwp
or
yarn global add dwp
Start a cron job.
dwp start
Stop all cron jobs.
dwp stop
Show cron jobs.
dwp list
Show logs.
dwp log
-
-v, --version
Show current version.
-
-h, --help
Show help info.
-
-W, --width <number>
Set wallpaper's width. Not required.
width
andheight
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 supportss
(second),m
(minute),h
(hour),d
(day). Default1d
. Not suggest to set a very small value, otherwise leading problem. -
-m, --max <number>
Keep latest
max
wallpapers in the directory. Default3
. -
-s, --startup
Auto start after your computer launched. Plan to support.
-
--no-startup
Not auto start after your computer launched. Plan to support.
-
-n, --num <number>
How many rows of log will be shown. Default
500
. -
-e, --error
Show logs with a log level upper than
error
.
Please contact with me if you have any question. Welcome to confirm an issue or contribute.