about summary refs log tree commit diff
path: root/users/fcuny/desktop/sway/waybar.nix
blob: 13ee9eb7bd69a6256c7abe5b43193b483beae13b (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
{ config, pkgs, lib, ... }:

{
  programs.waybar = {
    enable = true;
    systemd.enable = true;
       settings = [{
          layer = "top";
          position = "top";
          height = 24;
          modules-left = ["sway/workspaces" "sway/mode"];
          modules-center = ["sway/window"];
          modules-right = [ "network" "pulseaudio" "clock" ];
          modules = {
            "network" = {
              format-wifi = "{essid} ({signalStrength}%)";
              format-ethernet = "{ifname}: {ipaddr}/{cidr}";
              format-disconnected = "Disconnected";
            };
            "pulseaudio" = {
              format = "{icon} {volume}%";
            };
            "clock" = {
              format = "{:%a %d %b %H:%M}";
            };
          };
        }];
};
}