aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/output/dpms.c
Commit message (Collapse)AuthorAge
* Rename dpms output command to powerLibravatar Simon Ser2022-06-23
| | | | | | | | The "dpms" command refers to VESA Display Power Management Signaling, a deprecated standard. It's superseded by VESA DPM. Instead of tying out command name to a particular standard, use the neutral term "power".
* Add toggle logic inside DPMS handlerLibravatar Ivan Fedotov2021-03-25
| | | | | | | | | | | 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.
* Remove now-unused "input" argument of cmd_results_newLibravatar M Stoeckl2019-01-14
| | | | | | | | | Patch tested by compiling with `__attribute__ ((format (printf, 2, 3)))` applied to `cmd_results_new`. String usage constants have been converted from pointers to arrays when encountered. General handler format strings were sometimes modified to include the old input string, especially for unknown command errors.
* Switch to using a function to parse booleansLibravatar Brian Ashworth2018-07-23
|
* Refactor cmd_output to use config_subcommandLibravatar Brian Ashworth2018-06-03