diff --git a/modules/Modules.qml b/modules/Modules.qml index 3be68c1..3b5f0e9 100644 --- a/modules/Modules.qml +++ b/modules/Modules.qml @@ -22,7 +22,6 @@ QtObject { property var notifications: ({ enable: true, timeout: 3000, - popups: true, maxPopups: 4 }) property var mpris: ({ diff --git a/nix/hm-module.nix b/nix/hm-module.nix index a62a401..35a68e4 100644 --- a/nix/hm-module.nix +++ b/nix/hm-module.nix @@ -98,11 +98,6 @@ in default = 3000; description = "Notification popup timeout in milliseconds."; }; - popups = lib.mkOption { - type = lib.types.bool; - default = true; - description = "Show notification popups."; - }; maxPopups = lib.mkOption { type = lib.types.int; default = 4; diff --git a/shell.qml b/shell.qml index 7467ef3..3fc3674 100644 --- a/shell.qml +++ b/shell.qml @@ -20,7 +20,7 @@ ShellRoot { } LazyLoader { - active: Modules.notifications.popups + active: (Modules.notifications.maxPopups ?? 4) > 0 NotifPopup { screen: scope.modelData }