Stop pinning Sway output mode in dev config
Removes the hardcoded `output * mode 1920x1080` from the development Sway config and updates related docs to match. Dev sessions now rely on each output’s preferred mode at scale `1`, which better follows current display size (including VMware autofit behavior), while still documenting how to set a mode manually when needed.
This commit is contained in:
@@ -50,11 +50,10 @@ NEBULA_SHELL_AUTOSTART=0 sh compositor/sway/dev/run-sway-vm.sh
|
|||||||
|
|
||||||
### Output / resolution
|
### Output / resolution
|
||||||
|
|
||||||
The development config uses scale `1` and requests `1920x1080` when that mode is advertised. If it is not, Sway keeps the preferred mode. This is a VM convenience, not a production requirement.
|
The development config uses scale `1` and does not pin a resolution. Sway uses the output's preferred mode, which follows the current display size (including VMware Autofit Guest).
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
swaymsg -t get_outputs
|
swaymsg -t get_outputs
|
||||||
swaymsg output <name> mode 1920x1080
|
|
||||||
swaymsg output <name> scale 1
|
swaymsg output <name> scale 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -9,15 +9,13 @@ set $term foot
|
|||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Output / resolution
|
# Output / resolution
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
# Development default: 1:1 scale, fill the current VMware display.
|
# Development default: 1:1 scale, fill the current display.
|
||||||
# Request 1920x1080 when the output advertises that mode. If the mode is not
|
# No mode is pinned, so Sway uses the output's preferred mode (typically the
|
||||||
# available, Sway keeps the output's preferred mode instead of failing.
|
# native or current size). VMware Autofit Guest can then follow the host window.
|
||||||
#
|
#
|
||||||
# This is a development convenience, not a production architecture requirement.
|
|
||||||
# Inspect modes: swaymsg -t get_outputs
|
# Inspect modes: swaymsg -t get_outputs
|
||||||
# Force another mode (example): swaymsg output <name> mode 1600x900
|
# Force another mode (example): swaymsg output <name> mode 1600x900
|
||||||
output * scale 1
|
output * scale 1
|
||||||
output * mode 1920x1080
|
|
||||||
output * bg #000000 solid_color
|
output * bg #000000 solid_color
|
||||||
|
|
||||||
# -----------------------------------------------------------------------------
|
# -----------------------------------------------------------------------------
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ QT_QUICK_BACKEND=software ./build/nebula-shell
|
|||||||
|
|
||||||
### Output / resolution
|
### Output / resolution
|
||||||
|
|
||||||
The development Sway config requests `1920x1080` at scale `1` when that mode exists. If the VM does not advertise it, Sway keeps the preferred mode. This is a development default, not a production requirement.
|
The development Sway config uses scale `1` and does not pin a resolution. Sway uses the output's preferred mode so the session follows the current display size.
|
||||||
|
|
||||||
Inspect outputs and modes:
|
Inspect outputs and modes:
|
||||||
|
|
||||||
@@ -229,7 +229,7 @@ swaymsg -t get_outputs
|
|||||||
Set a mode explicitly if needed:
|
Set a mode explicitly if needed:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
swaymsg output <name> mode 1920x1080
|
swaymsg output <name> mode 1600x900
|
||||||
swaymsg output <name> scale 1
|
swaymsg output <name> scale 1
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user