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
...
@mcc For fractional scale information, there's basically two ways it is accessed.
"wayland-info -i zxdg_output_manager_v1" should show info about logical sizes/positions for outputs, and is widely supported.
That's not what apps are using to render at native resolution on fractionally scaled displays. Instead they would be using wp_fractional_scale (https://wayland.app/protocols/fractional-scale-v1), which has the compositor send events indicating the preferred scale factor for a surface. A new scale factor might get sent when a window is moved from one output to another.
@mcc If you're using GNOME:
# gdctl show
The reason you're getting all sorts of answers is that what you want to find out is more of a function of the compositor rather than 'Wayland', and there are a lot of different compositors.