git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commitc14f6e5346b9c8dfbf45ed4f33f91c43623bf529
parent55d81888c0
authorLucas Galante <[email protected]>
date2026-06-16 08:36
Show desktop notification on config reload

 src/server/window_manager.rs | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/server/window_manager.rs b/src/server/window_manager.rs
index 919e6a9..3b94649 100644
--- a/src/server/window_manager.rs
+++ b/src/server/window_manager.rs
@@ -1270,13 +1270,25 @@ impl WindowManager {
                     match crate::config::parse_config(&path, self) {
                         Ok(()) => {
                             self.dirty_windowing();
+                            let _ = std::process::Command::new("notify-send")
+                                .arg("cce")
+                                .arg("Configuration reloaded successfully")
+                                .spawn();
                         }
                         Err(e) => {
                             log::error!("failed to reload config: {}", e);
+                            let _ = std::process::Command::new("notify-send")
+                                .arg("cce")
+                                .arg(format!("Failed to reload config:\n{}", e))
+                                .spawn();
                         }
                     }
                 } else {
                     log::error!("no config file found to reload");
+                    let _ = std::process::Command::new("notify-send")
+                        .arg("cce")
+                        .arg("No config file found to reload")
+                        .spawn();
                 }
             }
             Action::Exit => {