Display found images
Executes the command as a child process,
waiting for it to finish and collecting all of its output.
Config file path: “/home/user_name/.config/wallswitch/wallswitch.json”
Default directories to search for images.
Get the feh binary path
Get all files into one vector.
Calculates the hash from Path.
Get unique and random images/figures
Get the magick binary path
Get N monitors
Generate a random integer value in the given range (min, max) inclusive.
Generate a random integer value in the given range (min, max) inclusive.
default wallpaper path: “/home/user_name/wallswitch.jpg”
Killing the previous instances of wallswitch before running
Generate random numbers without external dependencies
Read config file path: “/home/user_name/.config/wallswitch/wallswitch.json”
Set desktop wallpaper
Show initial messages
Shuffle the vector in place with the Fisher-Yates algorithm.
Update FileInfo images with dimension information
Locate the binary path for a command