aboutsummaryrefslogtreecommitdiff
path: root/sway/sway-output.5.scd
diff options
context:
space:
mode:
authorIvan Fedotov <17356208+ivanfed0t0v@users.noreply.github.com>2021-03-15 19:06:46 +0300
committerSimon Ser <contact@emersion.fr>2021-03-25 11:01:04 +0100
commit346f5a9d14e260405598fc530fb260c894db397f (patch)
treecf45e016607cd346784fde5dfbe2a44103a86ff2 /sway/sway-output.5.scd
parenta9563a37101e022d5e9c14f8244b1f8a109b4536 (diff)
Add toggle logic inside DPMS handler
Logic that obtains current DPMS state is put inside the handler. sway_output from which the current DPMS state will be obtained is selected by the following logic: * For '-' and '--' the focused output is used; * For '*' error "Cannot apply toggle to all outputs" is reported; * For everything else all_output_by_name_or_id() is used. Fixes #5929.
Diffstat (limited to 'sway/sway-output.5.scd')
-rw-r--r--sway/sway-output.5.scd2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/sway-output.5.scd b/sway/sway-output.5.scd
index 69f529fe..7927a609 100644
--- a/sway/sway-output.5.scd
+++ b/sway/sway-output.5.scd
@@ -112,7 +112,7 @@ must be separated by one space. For example:
*output* <name> toggle
Toggle the specified output.
-*output* <name> dpms on|off
+*output* <name> dpms on|off|toggle
Enables or disables the specified output via DPMS. To turn an output off
(ie. blank the screen but keep workspaces as-is), one can set DPMS to off.