Crate flowy

Source

Structs§

Config
Stores the times and filepaths as a vector of strings

Functions§

generate_config
Generates the config file. Takes the wallpaper folder path as args.
generate_config_solar
Does esentially the same thing as generate_config Only runs when sunrise and sunset times need to be accounted for Takes lat and long of a location along with the wallpaper path
get_config
Creates a new instance of struct Config and returns it
get_config_dir
Returns the path of the config directory. If the directory doesn’t exist, it is created.
get_dir
Returns the contents of a given dir
match_dir
Basic error handling to ensure an empty args field does not crash the app
set_times
Parses the config file and runs the daemon