aboutsummaryrefslogtreecommitdiffstats
path: root/modules/scripts/activate-windows/default.nix
blob: 441410fb1f4c01dc1b8c282227dabb85d7d0eb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{
  config,
  lib,
  pkgs,
  ...
}:
let
  inherit ((import ../lib.nix { inherit lib pkgs; })) mkScriptModule;
  base = mkScriptModule {
    name = "eww-active-windows";
    path = ./script.sh;
    description = "Outputs JSON array of active windows for eww bar\nUsed by eww to display window icons in the sidebar";
    deps = [
      pkgs.bash
      pkgs.jq
    ];
    inherit config;
  };
in
{
  options = base.options;
  config = base.moduleConfig;
}