Is there a simple command to get all the display numbers (and only the display numbers) connected to the computer? The use case is that I'd like to have separate colour profiles ~/.color/icc/${display}.icc
for each display $display
, and I'd like to load each one which is available during X startup using /usr/bin/dispwin -d ${display} ~/.color/icc/${display}.icc
. Current .xprofile
code:
monitor_color_profile="${HOME}/.color/icc/monitor.icc"
if [ -f "$monitor_color_profile" ]
then
/usr/bin/dispwin "$monitor_color_profile"
fi
unset monitor_color_profile
I'm already using xrandr
to get display sizes.
.xprofile
)? – jasonwryan Dec 27 '14 at 21:47xauth list
looks promising... I dunno if they'll all be there though, or if they must all be active. But it prints a list. There's also some XDMCP stuff that could probably do it, but that's all disabled by default. Maybe have a look inman Xsecurity
- I haven't looked at it but the twoman
pages with useful information in which I did look both point there. Oh, and, if you're really lucky, you can get it withxdotool search *(something)*
... – mikeserv Dec 27 '14 at 23:46