diff options
| author | Horu <73709188+HigherOrderLogic@users.noreply.github.com> | 2025-08-17 16:28:24 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-17 09:28:24 +0300 |
| commit | 271534e115e5915231c99df287bbfe396185924d (patch) | |
| tree | 5642ba961a88d5f5d1f5afc0686d7b2f2476f28c /niri-config/src | |
| parent | af30cc8df68b29973c8b9eec290f9e6b93463929 (diff) | |
| download | niri-271534e115e5915231c99df287bbfe396185924d.tar.gz niri-271534e115e5915231c99df287bbfe396185924d.tar.bz2 niri-271534e115e5915231c99df287bbfe396185924d.zip | |
Add ConfigLoaded event to IPC, option to disable built-in notification (#1829)
* feat: config reload ipc event
* cleanups
* Rename and move the new config option
* rename to ConfigLoaded and emit at connection
---------
Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
Diffstat (limited to 'niri-config/src')
| -rw-r--r-- | niri-config/src/lib.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 613aad3a..16ec6dca 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -60,6 +60,8 @@ pub struct Config { #[knuffel(child, default)] pub hotkey_overlay: HotkeyOverlay, #[knuffel(child, default)] + pub config_notification: ConfigNotification, + #[knuffel(child, default)] pub animations: Animations, #[knuffel(child, default)] pub gestures: Gestures, @@ -1048,6 +1050,12 @@ pub struct HotkeyOverlay { } #[derive(knuffel::Decode, Debug, Default, Clone, Copy, PartialEq, Eq)] +pub struct ConfigNotification { + #[knuffel(child)] + pub disable_failed: bool, +} + +#[derive(knuffel::Decode, Debug, Default, Clone, Copy, PartialEq, Eq)] pub struct Clipboard { #[knuffel(child)] pub disable_primary: bool, @@ -4769,6 +4777,9 @@ mod tests { skip_at_startup: true, hide_not_bound: false, }, + config_notification: ConfigNotification { + disable_failed: false, + }, animations: Animations { off: false, slowdown: FloatOrInt( |
