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

Output in JSON is not working #186

Open
VardanHeroic opened this issue Jul 21, 2024 · 3 comments
Open

Output in JSON is not working #186

VardanHeroic opened this issue Jul 21, 2024 · 3 comments

Comments

@VardanHeroic
Copy link

"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
Copy link
Member

hyprpaper doesn't support json IIRC yea

@VardanHeroic
Copy link
Author

Are there any plans to add output in JSON?

@vaxerski
Copy link
Member

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

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