Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
nikolaizombie1 opened this issue Jun 7, 2024 · 2 comments
Closed

Comments

@nikolaizombie1
Copy link
Contributor

nikolaizombie1 commented Jun 7, 2024

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
Copy link
Owner

Sounds good!

@anufrievroman
Copy link
Owner

Okay, so this has been released in version 2.3. Thank again for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants