Re: git: 31a7e2d48b09 - main - x11-toolkits/wlinfo: Add new port

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 10 Aug 2023 00:59:08 UTC
Emanuel Haupt <ehaupt@FreeBSD.org> writes:

> The branch main has been updated by ehaupt:
>
> URL: https://cgit.FreeBSD.org/ports/commit/?id=31a7e2d48b09b5bd2c2e7233e2c755d412347354
>
> commit 31a7e2d48b09b5bd2c2e7233e2c755d412347354
> Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
> AuthorDate: 2023-08-09 18:25:15 +0000
> Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
> CommitDate: 2023-08-09 18:25:15 +0000
>
>     x11-toolkits/wlinfo: Add new port
>     
>     Wlinfo queries Wayland for information about physical displays connected
>     to the system. It can print information about the physical dimensions of
>     such displays, and screen resolution, and display scaling
>     characteristics.

Why under x11-toolkits/ category if it's not a library? Also redundant
with graphics/wayland-utils.

$ pkg install wlinfo
$ wlinfo
output 103
---------
x: 0
y: 0
physical_width: 600
physical_height: 340
subpixel: 2
make: LG Electronics
model: LG Ultra HD
width: 3840
height: 2160
dpi: 262.3
scale: 1
listener function for opcode 4 of wl_output is NULL
Abort

$ pkg install wayland-utils
$ wayland-info
[...]
interface: 'wl_output',                                  version:  4, name: 103
        name: DP-1
        description: LG Electronics LG Ultra HD 0x0006C184 (DP-1)
        x: 0, y: 0, scale: 1,
        physical_width: 600 mm, physical_height: 340 mm,
        make: 'LG Electronics', model: 'LG Ultra HD',
        subpixel_orientation: horizontal rgb, output_transform: normal,
        mode:
                width: 3840 px, height: 2160 px, refresh: 60.000 Hz,
                flags: current