mirror of
https://github.com/swaywm/sway.git
synced 2026-05-05 06:46:49 -04:00
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.
This commit is contained in:
parent
a9563a3710
commit
346f5a9d14
2 changed files with 25 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue