nixos-config/modules/programs/waybar/default.nix

30 lines
699 B
Nix
Raw Normal View History

2021-10-22 19:45:17 +00:00
{ config, pkgs, ... }:
{
home-manager.users."${config.system.singleUser}".programs.waybar = {
enable = true;
settings = [
{
layer = "bottom";
position = "top";
gtk-layer-shell = true;
modules-left = [ "custom/grid" "sway/workspaces" "sway/mode" ];
modules-center = [ "clock" ];
modules-right = [ "tray" "idle_inhibitor" "pulseaudio" ];
modules = {
"sway/workspaces" = {
disable-scroll = true;
all-outputs = true;
};
"custom/grid" = {
format = "Start";
on-click = "${pkgs.nwg-launchers}/bin/nwggrid";
};
};
}
];
};
}