aboutsummaryrefslogtreecommitdiff
path: root/modules/user/desktop/apps/waybar/default.nix
blob: 1b2ee4da054ce3a3e986e7cf6fd905603c1aebc1 (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
{ config, ... }:
{
  programs.waybar = {
    settings.main = {
      layer = "bottom";
      position = "top";
      modules-left = [ "sway/workspaces" ];
      modules-center = [ "clock" ];
      modules-right = [
        "sway/language"
      ];

      "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.default = "•";
      };
    };
  };
}