.\" Generated by scdoc 1.11.3 .\" Complete documentation for this program is not available as a GNU info page .ie \n(.g .ds Aq \(aq .el .ds Aq ' .nh .ad l .\" Begin generated content: .TH "sway-output" "5" "2024-10-28" .PP .SH NAME .PP sway-output - output configuration commands for sway .PP .SH DESCRIPTION .PP You may combine output commands into one, like so: .PP .RS 4 output HDMI-A-1 mode 1920x1080 pos 1920 0 bg ~/wallpaper.\&png stretch .PP .RE You can get a list of output names with \fBswaymsg -t get_outputs\fR.\& You may also match any output by using the output name "*".\& Additionally, "-" can be used to match the focused output by name and "--" can be used to match the focused output by its identifier.\& .PP Some outputs may have different names when disconnecting and reconnecting.\& To identify these, the name can be substituted for a string consisting of the make, model and serial which you can get from \fBswaymsg -t get_outputs\fR.\& Each value must be separated by one space.\& For example: .PP .RS 4 output "Some Company ABC123 0x00000000" pos 1920 0 .PP .RE .SH COMMANDS .PP \fBoutput\fR mode|resolution|res [--custom] x[@Hz] .RS 4 Configures the specified output to use the given mode.\& Modes are a combination of width and height (in pixels) and a refresh rate that your display can be configured to use.\& For a list of available modes for each output, use \fBswaymsg -t get_outputs\fR.\& .PP To set a custom mode not listed in the list of available modes, use \fB--custom\fR.\& You should probably only use this if you know what you'\&re doing.\& .PP Examples: .PP .RS 4 output HDMI-A-1 mode 1920x1080 .PP output HDMI-A-1 mode 1920x1080@60Hz .PP .RE .RE \fBoutput\fR modeline .RS 4 Configures the specified output to use the given modeline.\& It can be generated using \fBcvt\fR(1) and \fBgtf\fR(1) commands.\& See \fBxorg.\&conf\fR(5).\& Only supported on DRM backend.\& .PP Example: .PP .RS 4 output HDMI-A-1 modeline 173.\&00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync .PP .PP .RE .RE \fBoutput\fR position|pos .RS 4 Places the specified output at the specific position in the global coordinate space.\& The cursor may only be moved between immediately adjacent outputs.\& If scaling is active, it has to be considered when positioning.\& For example, if the scaling factor for the left output is 2, the relative position for the right output has to be divided by 2.\& The reference point is the top left corner so if you want the bottoms aligned this has to be considered as well.\& .PP Example: .PP .RS 4 output HDMI1 scale 2 .PP output HDMI1 pos 0 1020 res 3200x1800 .PP output eDP1 pos 1600 0 res 1920x1080 .PP .RE Note that the left x-pos of eDP1 is 1600 = 3200/2 and the bottom y-pos is 1020 + (1800 / 2) = 1920 = 0 + 1920 .PP .RE \fBoutput\fR scale .RS 4 Scales the specified output by the specified scale \fIfactor\fR.\& An integer is recommended, but fractional values are also supported.\& You may be better served by setting an integer scale factor and adjusting the font size of your applications to taste.\& HiDPI isn'\&t supported with Xwayland clients (windows will blur).\& A fractional scale may be slightly adjusted to match requirements of the protocol.\& .PP .RE \fBoutput\fR scale_filter linear|nearest|smart .RS 4 Indicates how to scale application buffers that are rendered at a scale lower than the output'\&s configured scale, such as lo-dpi applications on hi-dpi screens.\& Linear is smoother and blurrier, nearest (also known as nearest neighbor) is sharper and blockier.\& Setting "smart" will apply nearest scaling when the output has an integer scale factor, otherwise linear.\& The default is "smart".\& .PP .RE \fBoutput\fR subpixel rgb|bgr|vrgb|vbgr|none .RS 4 Manually sets the subpixel hinting for the specified output.\& This value is usually auto-detected, but some displays may misreport their subpixel geometry.\& Using the correct subpixel hinting allows for sharper text.\& Incorrect values will result in blurrier text.\& When changing this via \fBswaymsg\fR, some applications may need to be restarted to use the new value.\& .PP .RE \fBoutput\fR background|bg [] .RS 4 Sets the wallpaper for the given output to the specified file, using the given scaling mode (one of "stretch", "fill", "fit", "center", "tile").\& If the specified file cannot be accessed or if the image does not fill the entire output, a fallback color may be provided to cover the rest of the output.\& \fIfallback_color\fR should be specified as \fI#RRGGBB\fR.\& Alpha is not supported.\& .PP .RE \fBoutput\fR background|bg solid_color .RS 4 Sets the background of the given output to the specified color.\& \fIcolor\fR should be specified as \fI#RRGGBB\fR.\& Alpha is not supported.\& .PP .RE \fBoutput\fR transform [clockwise|anticlockwise] .RS 4 Sets the background transform to the given value.\& Can be one of "90", "180", "270" for rotation; or "flipped", "flipped-90", "flipped-180", "flipped-270" to apply a rotation and flip, or "normal" to apply no transform.\& The rotation is performed clockwise.\& If a single output is chosen and a rotation direction is specified (\fIclockwise\fR or \fIanticlockwise\fR) then the transform is added or subtracted from the current transform (this cannot be used directly in the configuration file).\& .PP .RE \fBoutput\fR disable|enable .RS 4 Enables or disables the specified output (all outputs are enabled by default).\& .PP As opposed to the \fIpower\fR command, the output will lose its current workspace and windows.\& .PP .RE \fBoutput\fR toggle .RS 4 Toggle the specified output.\& .PP .RE \fBoutput\fR power on|off|toggle .RS 4 Turns on or off the specified output.\& .PP As opposed to the \fIenable\fR and \fIdisable\fR commands, the output keeps its current workspaces and windows.\& .PP .RE \fBoutput\fR dpms on|off|toggle .RS 4 Deprecated.\& Alias for \fIpower\fR.\& .PP .RE \fBoutput\fR max_render_time off| .RS 4 Controls when sway composites the output, as a positive number of milliseconds before the next display refresh.\& A smaller number leads to fresher composited frames and lower perceived input latency, but if set too low, sway may not finish compositing in time for display refresh, leading to delayed frames.\& .PP When set to off, sway composites immediately after display refresh, maximizing time available for compositing.\& .PP To adjust when applications are instructed to render, see \fBmax_render_time\fR in \fBsway\fR(5).\& .PP To set this up for optimal latency: .PD 0 .IP 1. 4 Launch some \fIfull-screen\fR application that renders continuously, like \fBglxgears\fR.\& .IP 2. 4 Start with \fBmax_render_time 1\fR.\& Increment by \fB1\fR if you see frame drops.\& .PD .PP This setting only has an effect on Wayland and DRM backends, as support for presentation timestamps and predicted output refresh rate is required.\& .PP .RE \fBoutput\fR adaptive_sync on|off|toggle .RS 4 Enables or disables adaptive synchronization (often referred to as Variable Refresh Rate, or by the vendor-specific names FreeSync/G-Sync).\& .PP Adaptive sync allows clients to submit frames a little too late without having to wait a whole refresh period to display it on screen.\& Enabling adaptive sync can improve latency, but can cause flickering on some hardware.\& .PP .RE \fBoutput\fR render_bit_depth 6|8|10 .RS 4 Controls the maximum color channel bit depth at which frames are rendered; the default is currently 8 bits per channel.\& .PP Setting higher values will not have an effect if hardware and software lack support for such bit depths.\& Successfully increasing the render bit depth will not necessarily increase the bit depth of the frames sent to a display.\& An increased render bit depth may provide smoother rendering of gradients, and screenshots which can more precisely store the colors of programs which display high bit depth colors.\& .PP Warnings: this can break screenshot/screencast programs which have not been updated to work with different bit depths.\& This command is experimental, and may be removed or changed in the future.\& .PP .RE \fBoutput\fR color_profile srgb|[icc ] .RS 4 Sets the color profile for an output.\& The default is \fIsrgb\fR.\& should be a path to a display ICC profile.\& .PP Not all renderers support this feature; currently it only works with the the Vulkan renderer.\& Even where supported, the application of the color profile may be inaccurate.\& .PP This command is experimental, and may be removed or changed in the future.\& It may have no effect or produce unexpected output when used together with future HDR support features.\& .PP .RE \fBoutput\fR allow_tearing yes|no .RS 4 Allows or disallows screen tearing as a result of immediate page flips, and an immediate presentation mode from a client.\& The default is that no screen tearing is allowed.\& .PP With immediate page flips, frames from the client are presented as soon as possible instead of synchronizing with the monitor'\&s vblank interval (VSync).\& .PP It is recommended to set \fBmax_render_time\fR to \fBoff\fR.\& In that case a page flip happens as soon as a client updates.\& Otherwise, tearing will only happen if rendering takes longer than the configured milliseconds before the next display refresh.\& .PP To adjust whether tearing is allowed for specific applications, see \fBallow_tearing\fR in \fBsway\fR(5).\& Note that tearing will only be enabled when it'\&s allowed for both the output and the application.\& .PP This setting only has effect when a window is fullscreen on the output.\& .PP .RE .SH SEE ALSO .PP \fBsway\fR(5) \fBsway-input\fR(5)