diff --git a/modules/panels.nix b/modules/panels.nix index db612c4..ef72039 100644 --- a/modules/panels.nix +++ b/modules/panels.nix @@ -5,6 +5,7 @@ } @ args: let cfg = config.programs.plasma; + hasWidget = widgetName: builtins.any (panel: builtins.any (widget: widget.name == widgetName) panel.widgets) cfg.panels; widgets = import ./widgets args; @@ -145,7 +146,7 @@ in # these should run at the same time. config = (lib.mkIf cfg.enable { home.packages = with pkgs; [] - ++ lib.optionals (lib.elem "application-title-bar" cfg.extraWidgets) [ application-title-bar ]; + ++ lib.optionals (lib.elem "application-title-bar" cfg.extraWidgets || hasWidget "com.github.antroids.application-title-bar") [ application-title-bar ]; programs.plasma.startup.desktopScript."panels_and_wallpaper" = (lib.mkIf anyPanelOrWallpaperSet (