Open VardanHeroic opened 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
hyprpaper doesn't support json IIRC yea
Are there any plans to add output in JSON?
feel free to do so and make a mr, I am busy with other stuff atm
"hyprctl" has "-j" flag which stands for output in JSON.
"hyprctl monitors -j" output:
But "hyprctl hyprpaper listacitve -j" and "hyprctl hyprpaper listloaded -j " ignore "-j" flag return regular output.
"hyprctl hyprpaper listacitve -j" output:
"hyprctl hyprpaper listloaded -j" output: