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

34 lines
887 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" ];
2021-10-23 17:34:39 +00:00
modules-right = [ "tray" "idle_inhibitor" "pulseaudio" "custom/menu" ];
2021-10-22 19:45:17 +00:00
modules = {
"sway/workspaces" = {
disable-scroll = true;
all-outputs = true;
};
"custom/grid" = {
format = "Start";
on-click = "${pkgs.nwg-launchers}/bin/nwggrid";
};
2021-10-23 17:34:39 +00:00
"custom/menu" = {
format = "Menu";
on-click = "${pkgs.nwg-menu}/bin/nwg-menu -ha right -va top -d -fm ${pkgs.gnome.nautilus}";
};
2021-10-22 19:45:17 +00:00
};
}
];
};
}