aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/waybar/module/default.nix
blob: 016ebd236cc91159f5fc9727e944bffa14ec0a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
  config,
  lib,
  pkgs,
}:
with config.scheme.withHashtag;
let
  inherit (import ../lib.nix { inherit lib; }) mkIcon;
in
{
  mainBar = {
    "hyprland/workspaces" = import ./workspaces.nix { inherit config lib; };
    "hyprland/window" = import ./window.nix { inherit config; };
    "pulseaudio" = import ./volume.nix { inherit config mkIcon; };
    "battery" = import ./battery.nix { inherit config mkIcon; };
    "custom/vpn" = import ./vpn.nix {
      inherit
        config
        lib
        pkgs
        mkIcon
        ;
    };
    "network" = import ./network.nix { inherit config mkIcon; };
    "clock#time" = import ./time.nix { inherit config mkIcon; };
    "memory" = import ./memory.nix { inherit config mkIcon; };
    "cpu" = import ./cpu.nix { inherit config mkIcon; };
    "clock#date" = import ./date.nix { inherit config mkIcon; };
  };
}