From 92b22ee9ea41ab236aae8d331781400ae2528995 Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Wed, 17 Jul 2019 19:48:28 -0400 Subject: 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. --- sway/sway-output.5.scd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sway/sway-output.5.scd') 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, -- cgit v1.2.3-54-g00ecf