aboutsummaryrefslogtreecommitdiff
path: root/modules/home/i3wm/nord-blue/i3-status.nix
blob: 12957192319635c7af3168c2bfeee85d2dc9e5a9 (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
31
32
{ pkgs, config, lib, vars, ... }:

{
  programs.i3-status = {
    enable = true;

    general = {
      colors = true;
      color_good = vars.colors.text;
      color_bad = vars.colors.foreground;
      interval = 1;
    };

    modules = {
        # Battery status
      "battery 0" = {
        enable = true;
        position = 4;
        settings = {
          format = "BAT: %status %percentage";
          format_down = "No battery";
          status_chr = "CHR";
          status_bat = "";
          status_unk = "?";
          status_full = "FULL";
          path = "/sys/class/power_supply/BAT1/uevent";
          low_threshold = 10;
        };
      };
    };
  };
}