Commit 44813a8a authored by Majiir Paktu's avatar Majiir Paktu
Browse files

streamdeck-ui: split desktop items

parent 0fb2fbc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ in
  config = mkIf cfg.enable {
    environment.systemPackages = with pkgs; [
      cfg.package
      (mkIf cfg.autoStart (makeAutostartItem { name = "streamdeck-ui"; package = cfg.package; }))
      (mkIf cfg.autoStart (makeAutostartItem { name = "streamdeck-ui-noui"; package = cfg.package; }))
    ];

    services.udev.packages = [ cfg.package ];
+17 −9
Original line number Diff line number Diff line
@@ -24,15 +24,23 @@ python3Packages.buildPythonApplication rec {
    ./update-pillow.patch
  ];

  desktopItems = [ (makeDesktopItem {
  desktopItems = let
    common = {
      name = "streamdeck-ui";
      desktopName = "Stream Deck UI";
      icon = "streamdeck-ui";
    exec = "streamdeck --no-ui";
      exec = "streamdeck";
      comment = "UI for the Elgato Stream Deck";
      categories = [ "Utility" ];
    };
  in builtins.map makeDesktopItem [
    common
    (common // {
      name = "${common.name}-noui";
      exec = "${common.exec} --no-ui";
      noDisplay = true;
  }) ];
    })
  ];

  postInstall =
    let