hyprwm / hyprpaper

Hyprpaper is a blazing fast wayland wallpaper utility with IPC controls.
https://wiki.hyprland.org/Hypr-Ecosystem/hyprpaper/
BSD 3-Clause "New" or "Revised" License
772 stars 54 forks source link

Output in JSON is not working #186

Open VardanHeroic opened 3 months ago

VardanHeroic commented 3 months ago

"hyprctl" has "-j" flag which stands for output in JSON.

"hyprctl monitors -j" output:

[{
    "id": 0,
    "name": "eDP-1",
    "description": "Chimei Innolux Corporation 0x14C3",
    "make": "Chimei Innolux Corporation",
    "model": "0x14C3",
    "serial": "",
    "width": 1366,
    "height": 768,
    "refreshRate": 60.00300,
    "x": 0,
    "y": 0,
    "activeWorkspace": {
        "id": 3,
        "name": "3"
    },
    "specialWorkspace": {
        "id": 0,
        "name": ""
    },
    "reserved": [0, 25, 0, 0],
    "scale": 1.00,
    "transform": 0,
    "focused": true,
    "dpmsStatus": true,
    "vrr": false,
    "activelyTearing": false,
    "disabled": false,
    "currentFormat": "XRGB8888",
    "availableModes": ["1366x768@60.00Hz"]
}]

But "hyprctl hyprpaper listacitve -j" and "hyprctl hyprpaper listloaded -j " ignore "-j" flag return regular output.

"hyprctl hyprpaper listacitve -j" output:

eDP-1 = /home/vardan/Pictures/0.png
 = /home/vardan/Pictures/0.png

"hyprctl hyprpaper listloaded -j" output:

/home/vardan/Pictures/0.png
vaxerski commented 3 months ago

hyprpaper doesn't support json IIRC yea

VardanHeroic commented 2 months ago

Are there any plans to add output in JSON?

vaxerski commented 2 months ago

feel free to do so and make a mr, I am busy with other stuff atm