aboutsummaryrefslogtreecommitdiffstats
path: root/sway/sway-output.5.scd
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-07-17 19:48:28 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-07-17 21:25:09 -0400
commit92b22ee9ea41ab236aae8d331781400ae2528995 (patch)
tree082390eef7ae9e0ecb930381b301e3ac47d65e27 /sway/sway-output.5.scd
parentinput_cmd_xkb_*: cleanup includes (diff)
downloadsway-92b22ee9ea41ab236aae8d331781400ae2528995.tar.gz
sway-92b22ee9ea41ab236aae8d331781400ae2528995.tar.zst
sway-92b22ee9ea41ab236aae8d331781400ae2528995.zip
cmd_output: support current output alias
Similar to seat command, this provides an alias for the current output. Instead of the output name or identifier, `-` can be used to operate on the focused output by name and `--` can be used to operate on the focused output by its identifier. This will prevent operating on the no-op output when using either alias.
Diffstat (limited to 'sway/sway-output.5.scd')
-rw-r--r--sway/sway-output.5.scd4
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/sway-output.5.scd b/sway/sway-output.5.scd
index e20d0aba..806054fc 100644
--- a/sway/sway-output.5.scd
+++ b/sway/sway-output.5.scd
@@ -11,7 +11,9 @@ You may combine output commands into one, like so:
11 output HDMI-A-1 mode 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch 11 output HDMI-A-1 mode 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch
12 12
13You can get a list of output names with *swaymsg -t get_outputs*. You may also 13You can get a list of output names with *swaymsg -t get_outputs*. You may also
14match any output by using the output name "\*". 14match any output by using the output name "\*". Additionally, "-" can be used
15to match the focused output by name and "--" can be used to match the focused
16output by its identifier.
15 17
16Some outputs may have different names when disconnecting and reconnecting. To 18Some outputs may have different names when disconnecting and reconnecting. To
17identify these, the name can be substituted for a string consisting of the make, 19identify these, the name can be substituted for a string consisting of the make,