hyprpaper icon indicating copy to clipboard operation
hyprpaper copied to clipboard

Output in JSON is not working

Open VardanHeroic opened this issue 7 months ago • 3 comments

"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": ["[email protected]"]
}]

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

VardanHeroic avatar Jul 21 '24 06:07 VardanHeroic