aboutsummaryrefslogtreecommitdiff
path: root/sway/sway-output.5.scd
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-07-17 19:48:28 -0400
committerDrew DeVault <sir@cmpwn.com>2019-07-17 21:25:09 -0400
commit92b22ee9ea41ab236aae8d331781400ae2528995 (patch)
tree082390eef7ae9e0ecb930381b301e3ac47d65e27 /sway/sway-output.5.scd
parent37308f65495feebcef5480ad28a9e1f936f7e807 (diff)
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:
output HDMI-A-1 mode 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch
You can get a list of output names with *swaymsg -t get_outputs*. You may also
-match any output by using the output name "\*".
+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.
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,