Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Add toggle logic inside DPMS handler | Ivan Fedotov | 2021-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_new | M Stoeckl | 2019-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 booleans | Brian Ashworth | 2018-07-23 |
| | |||
* | Refactor cmd_output to use config_subcommand | Brian Ashworth | 2018-06-03 |