osmates vm resize
Change the size of a machine's display, and a Windows or Linux machine's scale.
osmates vm resize <machine> <size> [--scale <scale>] [--json]A running Windows machine shows the new size within a second at a user's desktop or its lock screen; at the login screen or a User Account Control prompt it waits for that desktop. Windows takes a new scale on the user's desktop and draws at it from the next sign-in, so a scale set at the login screen or on a stopped machine shows from the second. A Linux X11 desktop changes its mode, and the result says when it keeps its own; at scale 2 Hyprland draws at twice the size, GNOME does with 3D acceleration on, and Xfce keeps its own scale; a Linux console keeps its own mode inside the new size, with bars around it; a macOS machine keeps the scale and density its window gave it. A stopped machine starts with the new display.
Arguments
<machine>RequiredThe machine's name or identifier.
<size>RequiredThe size in pixels, such as 1920x1200; a width of a multiple of 8 for Linux and on the OSMates engine, and an even height for Linux at scale 2.
--scale <scale>Windows and Linux: 1 or 2 pixels a point, 2 for 200%. Default: the machine's.
--jsonPrint machine-readable JSON.
JSON output
With --json, it prints an object with these fields.
JSON Schema: /schemas/0/cli/vm/resize.json
displayobjectRequireddisplay.heightintegerRequireddisplay.pixelsPerInchintegerdisplay.scaleintegerRequireddisplay.widthintegerRequiredguestobjectguest.dpiintegerRequiredguest.heightintegerRequiredguest.scaleintegerRequiredguest.widthintegerRequiredoutcomestring or objectRequiredOne of
shown, or an object that holds one key:pendingorfailed.outcome.pendingobjectoutcome.failedobject
Fields nested deeper are in the schema.
Exit statuses
Its exit status is one of these.
| Status | Meaning |
|---|---|
| 0 | The command did what it was asked. |
| 1 | The command failed; with --json, standard error's last line is the error object. |
| 64 | The command line is wrong, as ArgumentParser found before the command ran. |
| 65 | What was given is wrong, found while the command ran; the same command fails until it changes. |
| 75 | The same command can work later with nothing changed, as while an update finishes. |
| 130 | Control-C cancelled what the command started. |
| 1 | The command printed its result, whose check failed. |