aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorallusive-dev <[email protected]>2023-11-08 10:07:59 +1100
committerallusive-dev <[email protected]>2023-11-08 10:07:59 +1100
commite97fb330cac3aff23c1d676e460647ba0477aaf4 (patch)
tree01a28700f0c185540e7eb235fe4b0950f3c271fd
parentWindow Manager support is now applied automatically without using 'wm-support' (diff)
downloadcompfy-e97fb330cac3aff23c1d676e460647ba0477aaf4.tar.xz
compfy-e97fb330cac3aff23c1d676e460647ba0477aaf4.zip
Added outputs when a patched WM is detected
-rw-r--r--src/config_libconfig.c13
1 files changed, 13 insertions, 0 deletions
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);