1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-13 12:31:07 +01:00
home-manager/tests/modules/services/window-managers/labwc/labwc-rc.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

81 lines
1.8 KiB
Nix

{
wayland.windowManager.labwc = {
enable = true;
package = null;
rc = {
theme = {
name = "nord";
cornerRadius = 8;
font = {
"@name" = "FiraCode";
"@place" = "";
"@size" = "11";
};
};
mouse = {
default = { };
context = {
"@name" = "Root";
mousebind = [
{
"@button" = "Right";
"@action" = "Press";
action = {
"@name" = "ShowMenu";
"@menu" = "some-custom-menu";
};
}
];
};
};
keyboard = {
default = true;
keybind = [
{
"@key" = "W-Return";
action = {
"@command" = "alacritty";
"@name" = "Execute";
};
}
{
"@key" = "W-Esc";
action = {
"@name" = "Execute";
"@command" = "foot";
};
}
{
"@key" = "W-1";
action = {
"@to" = "1";
"@name" = "GoToDesktop";
};
}
];
};
desktops = {
"@number" = 10;
};
};
extraConfig = ''
<!-- ExtraConfig -->
<tabletTool motion="absolute" relativeMotionSensitivity="1.0" />
<libinput>
<device category="default">
<naturalScroll></naturalScroll>
<leftHanded></leftHanded>
<pointerSpeed></pointerSpeed>
<accelProfile></accelProfile>
</device>
</libinput>
'';
};
nmt.script = ''
labwcConfig=home-files/.config/labwc/rc.xml
assertFileExists "$labwcConfig"
assertFileContent "$labwcConfig" "${./rc.xml}"
'';
}