aboutsummaryrefslogtreecommitdiffstats
path: root/users/sils/waybar/default.nix
blob: d22745193e141b344e7386e7ac8eb672e53d2769 (plain) (blame)
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
31
32
33
34
35
36
37
{pkgs, ...}: {
  programs.waybar = {
    enable = true;
    package = pkgs.waybar-hyprland;
    settings = [
      {
        mainBar = {
          layer = "top";
          position = "top";
          output = [
            "eDP-1"
            "DP-2"
          ];
        };
        modules-left = [
          "wlr/workspaces"
          "hyprland/mode"
          "wlr/taskbar"
        ];
        modules-center = [
          "hyprland/window"
        ];
        #modules-right = [];
        "wlr/workspaces" = {
          "format" = "{icon}";
          "on-scroll-up" = "${pkgs.hyprland}/bin/hyprctl dispatch workspace e+1";
          "on-scroll-down" = "${pkgs.hyprland}/bin/hyprctl dispatch workspace e-1";
          "on-click" = "activate";
        };
      }
    ];
    systemd = {
      enable = true;
      target = "hyprland-session.target";
    };
  };
}