waypaper
waypaper copied to clipboard
List the current wallpapers in JSON through a command line option
I would like to add a command line option to list the currently set wallpapers and monitors in the form of a JSON printed to standard output. The usage of this option would look something like this:
waypaper --list
The output of the command would look something like this:
[
{
"monitor": "All",
"wallpaper": "~/Downloads/Wallpaper1.jpeg"
},
{
"monitor": "DP-2",
"wallpaper": "/home/user/Downloads/Wallpaper2.png"
},
{
"monitor": "HDMI-A-1",
"wallpaper": "/home/user/Downloads/Wallpaper3.png"
}
]
This would address some of the concerns raised in issue #35 in a way that allows the output to be parsed at the command line or by another program and could be a stepping stone towards implementing #35.