mirror of
https://github.com/swaywm/sway.git
synced 2025-11-26 06:59:59 -05:00
config: fix validation exit code and log level
This makes it so invalid configs will return the exit code 1 when the validation flag is given. This also reduces the log level to SWAY_ERROR, which makes it so only the errors are shown. If someone wants more verbose output, the can use the -V/--verbose or -d/--debug flags. Additionally, this also makes it so swaybg will not be spawned when validating the config.
This commit is contained in:
parent
31a83bd48d
commit
33a984bbc5
3 changed files with 3 additions and 3 deletions
|
|
@ -103,7 +103,7 @@ struct cmd_results *cmd_output(int argc, char **argv) {
|
|||
// If reloading, the output configs will be applied after reading the
|
||||
// entire config and before the deferred commands so that an auto generated
|
||||
// workspace name is not given to re-enabled outputs.
|
||||
if (!config->reloading) {
|
||||
if (!config->reloading && !config->validating) {
|
||||
apply_output_config_to_outputs(output);
|
||||
if (background) {
|
||||
spawn_swaybg();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue