Yes, I know you can use displayPlacer list to get the current arrangements, but it's done in the verbose way up top, followed by the statement at the bottom to execute/apply the current arrangement.
What I end up having to do is grep for that line, split it with a utility that respects quoted strings, then drop the first split item (which is 'displayPlacer') all just to get the monitor configs. Hoping a flag can be added that simply dumps each monitor's config out on a single line without 'displayPlacer' in the front.
Aside / Suggestion
Also, on a side-note, something else I do in my own 'displayPlacer wrapping util' is when I'm generating the command to re-apply my current config, I replace the non-quoted spaces with new lines, then append \ to the end of all but the last line. Finally I indent the following lines. Makes it much more legible when viewing the command itself and still keeps it as a single command.
Primary Ask
Hoping to get a simple way to dump the current arrangement.
For instance, if I typed this (using
-s
for 'simple')...Here's the output I'd love to see...
Yes, I know you can use
displayPlacer list
to get the current arrangements, but it's done in the verbose way up top, followed by the statement at the bottom to execute/apply the current arrangement.What I end up having to do is grep for that line, split it with a utility that respects quoted strings, then drop the first split item (which is 'displayPlacer') all just to get the monitor configs. Hoping a flag can be added that simply dumps each monitor's config out on a single line without 'displayPlacer' in the front.
Aside / Suggestion
Also, on a side-note, something else I do in my own 'displayPlacer wrapping util' is when I'm generating the command to re-apply my current config, I replace the non-quoted spaces with new lines, then append
\
to the end of all but the last line. Finally I indent the following lines. Makes it much more legible when viewing the command itself and still keeps it as a single command.e.g. Instead of this...
it looks like this (still technically one command, but more legible)...
Maybe something to consider as part of your current
list
option.