anufrievroman / waypaper

GUI wallpaper manager for Wayland and Xorg Linux systems
https://anufrievroman.gitbook.io/waypaper
GNU General Public License v3.0
277 stars 11 forks source link

List the current wallpapers in JSON through a command line option #55

Open nikolaizombie1 opened 4 weeks ago

nikolaizombie1 commented 4 weeks ago

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.

anufrievroman commented 4 weeks ago

Sounds good!