1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-13 04:21:08 +01:00
home-manager/tests/modules/services/window-managers/labwc/labwc-menu.nix
LesVu d8263c0b84
labwc: Add module for Labwc (#6807)
Add a module for labwc compositor.
Add myself as labwc module maintainer
2025-04-16 11:15:07 -05:00

99 lines
2.2 KiB
Nix

{
wayland.windowManager.labwc = {
enable = true;
package = null;
menu = [
{
menuId = "client-menu";
label = "Client Menu";
icon = "";
items = [
{
label = "Maximize";
icon = "";
action = {
name = "ToggleMaximize";
};
}
{
label = "Fullscreen";
action = {
name = "ToggleFullscreen";
};
}
{
label = "Always on Top";
action = {
name = "ToggleAlwaysOnTop";
};
}
{
label = "Alacritty";
action = {
name = "Execute";
command = "alacritty";
};
}
{
separator = { };
}
{
label = "Workspace";
menuId = "workspace";
icon = "";
items = [
{
label = "Move Left";
action = {
name = "SendToDesktop";
to = "left";
};
}
];
}
{
separator = {
label = "sep";
};
}
];
}
{
menuId = "menu-two";
label = "Client Menu Two";
icon = "";
items = [
{
label = "Menu In Menu";
menuId = "menu-in-menu";
icon = "";
items = [
{
label = "Menu In Menu In Menu";
menuId = "menu-in-menu-in-menu";
icon = "";
items = [
{
label = "Move Right";
action = {
name = "SendToDesktop";
to = "right";
};
}
];
}
];
}
];
}
{ menuId = ""; }
];
};
nmt.script = ''
labwcMenuConfig=home-files/.config/labwc/menu.xml
assertFileExists "$labwcMenuConfig"
assertFileContent "$labwcMenuConfig" "${./menu.xml}"
'';
}