CLI commands and space #3246
-
Hey, Just bought a pro license and writting a few scripts. I'm unable to identify my displays by name because (I am assuming) they have spaces - i.e. "iPad Pro 2021". Both of these fail: betterdisplaycli toggle -nameLike="iPad Pro" -connected But when I used -UUID=, then it works. On another note, it would be nice to have an easy way to list some basic information for all phisically connected displays (including display that are connected but not turned "on"). The CLI guide has a section named "Device identification and device listing", but all commands in that section are just serve "identify" and not list (with the exception of displayWithFocus and displayWithMouse I guesss?). Just want to take the opportunity to mention that I really love this app. Incredibly powerful and such high quality execution throughout everything - features, UI and, of course, the documentation which is very well put together even if it could benefit from a few additional improvements. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
I also can't get the equivalent http request working, even with the aforementioned (working) UUID method. I've tried all of the below: http://localhost:55777/toggle?UUID=REDACTED&connected |
Beta Was this translation helpful? Give feedback.
-
Hi there, hmm. I'll check it. Escaping space (
But with With
The following command should I think list everything:
|
Beta Was this translation helpful? Give feedback.
-
OK, so I managed to fix the
But I sometimes may have another iPad model plugged in, or one that belongs to someone else (e.g. Mary's iPad) and would like to include my own name as part of Finally, thanks for the |
Beta Was this translation helpful? Give feedback.
Hi there,
hmm. I'll check it. Escaping space (
\
) should work.betterdisplaycli set -namelike=built-in\ display -brightness=50%
But with
namelike
you can use only a part of the name, likeipad
in your case so space is not needed.With
curl
, you also need to escape?
:curl http://localhost:55777/get\?namelike=ipad\&identifiers
The following command should I think list everything:
betterdisplaycli get -identifiers