Add the following code to your project's shard.yml under:
dependencies
to use in production
- OR -
development_dependencies
to use in development
A CLI tool for setting the Air Raid Alert Map of Ukraine as a desktop background
This script takes a screenshot of the https://alerts.in.ua site and set it as a desktop background.
Support:
Required libraries:
chromedriver
.qdbus
on KDE Plasma.$ air_alert_map_ua_wallpaper --help
NAME
air_alert_map_ua_wallpaper - a CLI tool for setting the Air Raid Alert Map of Ukraine as a desktop background
VERSION
0.1.0
SYNOPSIS
air_alert_map_ua_wallpaper [arguments]
ARGUMENTS
-t, --t=NAME target platform: kde|macos (default: kde)
-w, --width=PIXELS specify a desired width in pixels (default: 2560)
-h, --height=PIXELS specify a desired height in pixels (default: 1440)
-l, --language=NAME language ua|en (default: ua)
--light set light wallpaper
--help print this help
-v, --version display the version and exit
git@github.com:mamantoha/air_alert_map_ua_wallpaper.git && cd air_alert_map_ua_wallpaper
shards build --release
./bin/air_alert_map_ua_wallpaper
or move it to any directory in $PATH
Set the wallpaper on macOS:
air_alert_map_ua_wallpaper -t macos -w 3456 -h 2234
To change background every 5 minutes the following command:
crontab -e
and add the following to the opened file:
*/5 * * * * env DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus ~/bin/air_alert_map_ua_wallpaper
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)