From e97fb330cac3aff23c1d676e460647ba0477aaf4 Mon Sep 17 00:00:00 2001 From: allusive-dev Date: Wed, 8 Nov 2023 10:07:59 +1100 Subject: Added outputs when a patched WM is detected --- src/config_libconfig.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/config_libconfig.c b/src/config_libconfig.c index 9b537b9..1c765fa 100644 --- a/src/config_libconfig.c +++ b/src/config_libconfig.c @@ -468,6 +468,19 @@ char *parse_config_libconfig(options_t *opt, const char *config_file, bool *shad goto err; } } + + const char *wmNotice = checkWindowManager(); + + if (strcmp(wmNotice, "awesome") == 0) { + log_warn("Looks like you are using AwesomeWM. Applying Patches"); + } else if (strcmp(wmNotice, "herb") == 0) { + log_warn("Looks like you are using HerbstluftWM. Applying Patches"); + } else if (strcmp(wmNotice, "dwm") == 0) { + log_warn("Looks like you are using DWM. Applying Patches"); + } else { + log_warn("Looks like your WM, %s does not have any patches avaliable. This is not an Error.", wmNotice); + } + // --log-level if (config_lookup_string(&cfg, "log-level", &sval)) { auto level = string_to_log_level(sval); -- cgit v1.2.3