aboutsummaryrefslogtreecommitdiff
path: root/modules/user/desktop/apps/waybar/default.nix
blob: 053859ced691ef51b5c3a6e28893d5717adb5a1d (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
38
39
40
41
42
43
{ config, ... }:
{
  programs.waybar = {
    settings.main = {
      layer = "bottom";
      position = "bottom";
      modules-left = [ "sway/workspaces" ];
      modules-center = [ "clock" ];
      modules-right = [
        "sway/language"
        "tray"
      ];

      clock = {
        format = "{:%A, %b %d %Y | %H:%M}";
      };

      "sway/language" = {
        on-click = "swaymsg input type:keyboard xkb_switch_layout next";
        tooltip-format = " {long}";
      };

      "sway/workspaces" = {
        all-outputs = true;
        disable-auto-back-and-forth = true;
        format = "{icon}";
        format-icons = {
          "1" = "I";
          "2" = "II";
          "3" = "III";
          "4" = "IV";
          "5" = "V";
          "6" = "VI";
          "7" = "VII";
          "8" = "VIII";
          "9" = "IX";
        };
      };
    };

    style = builtins.readFile ./style.css;
  };
}