GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
WAY-DISPLAYS(1) User Manuals WAY-DISPLAYS(1)

way-displays - Auto Manage Your Wayland Displays

way-displays [OPTIONS...] [COMMAND]

1.
Set resolution/refresh: preferred, highest or custom
2.
Enable VRR / adaptive sync
3.
Arrange in a row or a column
4.
Auto scale based on DPI: 96 is a scale of 1
5.
Update when displays plugged/unplugged
6.
Update when laptop lid closed/opened

Works out of the box: no configuration required.

Wayland successor to xlayoutdisplay, inspired by kanshi.

See wiki for Configuration, Recipes, Troubleshooting and more.

Background process that performs the management. Configuration is read from a file discovered in order:

$XDG_CONFIG_HOME/way-displays/cfg.yaml
$HOME/.config/way-displays/cfg.yaml
/usr/local/etc/way-displays/cfg.yaml
/etc/way-displays/cfg.yaml
    

The file may be specified via the --config option.

cfg.yaml will be monitored for changes, which will be immediately applied.

See the default /etc/way-displays/cfg.yaml and https://github.com/alex-courtis/way-displays/blob/master/doc/CONFIGURATION.md for details on individual configurable settings.

Server is run when no commands are specified.

Server responds to IPC requests to fetch and mutate state: https://github.com/alex-courtis/way-displays/blob/master/doc/IPC.md

Manages the server. The active configuration and display state may be inspected, and the configuration modified.

The active configuration can be written to disk, however any comments and formatting will be lost.

A wlroots based compositor that supports the WLR Output Management protocol.

way-displays is blessed for the sway and river. It may work on others.

Hpyrland provides all way-displays functionality and you may experience issues.

way-displays must be run as a daemon, a background server process. It will respond to your configuration changes as well as state changes such as plugging in a monitor or closing the lid.

User should be a member of the input group for querying laptop lid state.

Overrides cfg.yaml. info is default.
Configuration file, falls back to defaults if not found.
Print client output as raw YAML

Print usage and exit.
Display version information and exit.
Show the active configuration, commands and current display state.
Add a new setting or modify an existing.
Set vertical arrangement and the alignment.
Set the order of arrangement. Replaces previous order.
Enable scaling, overrides AUTO_SCALE and SCALE
Enable auto scaling.
Set the scale for a specific display.
Highest available resolution / refresh.
Specified resolution at its highest refresh. Optional refresh will choose a mode +-0.5Hz.
Transform a specific display.
Disable VRR for a display.
Disable a display.
Sets a /bin/sh command to be executed following most events. Obeys LOG_THRESHOLD
Default: notify-send "way-displays ${CALLBACK_LEVEL}" "${CALLBACK_MSG}"
${CALLBACK_MSG} contains a human readable message
${CALLBACK_LEVEL} LOG_THRESHOLD
Remove an existing setting.
Use auto scaling for the display, if enabled.
Use preferred or highest availble if no preferred.
Remove transformation for a display.
Enable VRR for a display.
Enable a display.
Remove command on display configuration success.
Toggle a setting.
Toggle scaling.
Toggle auto scaling.
Toggle VRR for a display.
Toggle a display.
Write active configuration to cfg.yaml; removes any whitespace or comments.

Displays are matched by name or description with precedence: exact, regex, fuzzy

You can identify them via logs e.g.

DP-3 Arrived:

name: 'DP-3'
desc: 'Unknown Monitor Maker ABC123 (DP-3 via HDMI)'

It is recommended to use the description rather than the nondeterministic name.

Avoid using `DP-1' as that will also match `eDP-1'

Any item prefixed with a ! will be interpreted as extended POSIX regex e.g. `!^DP-1'. Regex strings must be single quoted.

Using a regex is preferred, however fuzzy case insensitive string matches of at least 3 characters may be used.

Add to your sway config to start way-displays when sway starts.
Show current configuration and display state.
Arrange left to right, aligned at the bottom.
Set the order for arrangement.
Set the scale.
Use 3840x2160@24Hz
Persist your changes to your cfg.yaml

https://github.com/alex-courtis/way-displays

Alexander Courtis.

2025/05/02 way-displays

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.