Is there a way to, from the command line, on Wayland Linux, print the current displays, both their physical pixel size and their "logical" (display independent pixels / apple "points" / whatever wayland calls it) pixel size? There is a freeware app called wlinfo that purports to do this, but when I run it it prints inaccurate information (does not appear to support fractional DPI) and then crashes.
@mcc your compositor most likely has a command. niri has niri msg outputs but I know swaymsg (away) and riverctl (river) have similar subcommands

@chinmay @mcc
Yeah, on sway they have:

$ swaymsg -t get_outputs
Output eDP-1 'Sharp Corporation LQ156M1JW16 Unknown' (focused)
Current mode: 1920x1080 @ 240.000 Hz
Power: on
Position: 0,400
Scale factor: 1.000000
Scale filter: nearest
Subpixel hinting: unknown
Transform: normal
Workspace: 1 - One
Max render time: off
Adaptive sync: disabled
Allow tearing: no
Available modes:
1920x1080 @ 240.000 Hz
1920x1080 @ 60.000 Hz
...