diff options
-rw-r--r-- | sway/sway.5.txt | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/sway/sway.5.txt b/sway/sway.5.txt index afd3c9fa..6c9bce7a 100644 --- a/sway/sway.5.txt +++ b/sway/sway.5.txt | |||
@@ -353,35 +353,44 @@ The default colors are: | |||
353 | Prevents windows matching <criteria> from being focused automatically when | 353 | Prevents windows matching <criteria> from being focused automatically when |
354 | they're created. This does not apply to the first window in a workspace. | 354 | they're created. This does not apply to the first window in a workspace. |
355 | 355 | ||
356 | **output** <name> <resolution|res> <WIDTHxHEIGHT>:: | 356 | **output** <name> mode|resolution|res <WIDTHxHEIGHT>[@<RATE>[Hz]]:: |
357 | Configures the specified output to use the given resolution. | 357 | Configures the specified output to use the given mode. Modes are a combination |
358 | of width and height (in pixels) and a refresh rate that your display can be | ||
359 | configured to use. For a list of available modes, use swaymsg -t get_outputs. | ||
358 | + | 360 | + |
359 | _Note_: sway does not currently support setting the output mode. Your output's native | 361 | Examples: |
360 | resolution will be used and the screen will be scaled from the resolution | 362 | + |
361 | specified to your native resolution. | 363 | output HDMI-A-1 mode 1920x1080 |
364 | + | ||
365 | output HDMI-A-1 mode 1920x1080@60Hz | ||
362 | 366 | ||
363 | **output** <name> <position|pos> <X,Y>:: | 367 | **output** <name> position|pos <X,Y>:: |
364 | Configures the specified output to be arranged at the given position. | 368 | Configures the specified output to be arranged at the given position. |
365 | 369 | ||
366 | **output** <name> <scale> <I>:: | 370 | **output** <name> scale <I>:: |
367 | Configures the specified output to be scaled up by the specified integer | 371 | Configures the specified output to be scaled up by the specified integer |
368 | scaling factor (usually 2 for HiDPI screens). | 372 | scaling factor (usually 2 for HiDPI screens). Fractional scaling is supported. |
369 | 373 | ||
370 | **output** <name> <background|bg> <file> <mode>:: | 374 | **output** <name> background|bg <file> <mode>:: |
371 | Sets the wallpaper for the given output to the specified file, using the given | 375 | Sets the wallpaper for the given output to the specified file, using the given |
372 | scaling mode (one of "stretch", "fill", "fit", "center", "tile"). | 376 | scaling mode (one of "stretch", "fill", "fit", "center", "tile"). |
373 | 377 | ||
374 | **output** <name> <background|bg> <color> solid_color:: | 378 | **output** <name> background|bg <color> solid_color:: |
375 | Sets the background of the given output to the specified color. _color_ should | 379 | Sets the background of the given output to the specified color. _color_ should |
376 | be specified as an _#rrggbb_ (no alpha) color. | 380 | be specified as an _#rrggbb_ (no alpha) color. |
377 | 381 | ||
382 | **output** <name> transform <transform>:: | ||
383 | Sets the background transform to the given value. Can be one of "90", "180", | ||
384 | "270" for rotation; or "flipped", "flipped-90", "flipped-180", "flipped-270" | ||
385 | to apply a rotation and flip, or "normal" to apply no transform. | ||
386 | |||
378 | **output** <name> disable:: | 387 | **output** <name> disable:: |
379 | Disables the specified output. | 388 | Disables the specified output. |
380 | 389 | ||
381 | **NOTES FOR THE OUTPUT COMMAND**:: | 390 | **NOTES FOR THE OUTPUT COMMAND**:: |
382 | You may combine output commands into one, like so: | 391 | You may combine output commands into one, like so: |
383 | + | 392 | + |
384 | output HDMI-A-1 res 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch | 393 | output HDMI-A-1 mode 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch |
385 | + | 394 | + |
386 | You can get a list of output names like so: | 395 | You can get a list of output names like so: |
387 | + | 396 | + |